R colors 画图配色相关包及函数

版权声明:欢迎交流:[email protected] https://blog.csdn.net/luo617/article/details/81713091

画图heatmap颜色定义

colorRampPalette(c('blue','black', 'yellow'))(120)

heat.colors()    #从红色渐变到黄色再变到白色(以体现“高温”、“白热化”)。
terrain.colors() #从绿色渐变到黄色再到棕色最后到白色(这些颜色适合表示地理地形)。
cm.colors()      #从青色渐变到白色再到粉红色。
topo.colors()    #从蓝色渐变到青色再到黄色最后到棕色。
rainbow(6)       #彩虹色

rich.colors(100)  #require(gplots)

ggtech 官网:https://github.com/ricardo-bion/ggtech
科技主题包,打包了Airbnb,Etsy,Facebook,Google以及Twitter等科技公司的主题配色

ggsci 官网:https://github.com/road2stat/ggsci
https://cran.r-project.org/web/packages/ggsci/vignettes/ggsci.html
ggsci打包了Nature Publishing Group,American Association for the Advancement of Science,Lancet journals等期刊的图片配色

配色及主题包:ggthemes, ggthemer, RColorBrewer

猜你喜欢

转载自blog.csdn.net/luo617/article/details/81713091