欢迎来到医科研,这里是白介素2的读书笔记,跟我一起聊临床与科研的故事, 生物医学数据挖掘,R语言,TCGA、GEO数据挖掘。
library(wesanderson)
BottleRocket1, BottleRocket2, Rushmore1, Royal1, Royal2, Zissou1, Darjeeling1, Darjeeling2, Chevalier1 , FantasticFox1 , Moonrise1, Moonrise2, Moonrise3, Cavalcanti1, GrandBudapest1, GrandBudapest2, IsleofDogs1, IsleofDogs2
wes_palette函数
wes_palette("Cavalcanti1", 3)
wes_palette("Royal1")
调用方法类似于RcolorBrewer
# simple barplot
barplot(c(2,5,7), col=wes_palette(n=3, name="GrandBudapest2"))
library(ggplot2)
ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) +
geom_point(size = 2) +
scale_color_manual(values = wes_palette(n=3, name="GrandBudapest2"))
参考资料链接
(https://links.jianshu.com/go?to=http%3A%2F%2Fwww.sthda.com%2Fenglish%2Fwiki%2Fcolors-in-r)
联系客服