library(gcookbook) # For the data set
sp1 <- ggplot(ChickWeight, aes(x=Time, y=weight))
sp1 + geom_boxplot(aes(group=Time),fill='purple')
library(gcookbook) # For the data set
sp1 <- ggplot(ChickWeight, aes(x=Time, y=weight))
sp1 + geom_boxplot(aes(group=Time),fill='aliceblue')
sp1 + geom_boxplot(aes(group=Time),fill='antiquewhite')
sp1 + geom_boxplot(aes(group=Time),fill='aquamarine')
sp1 + geom_boxplot(aes(group=Time),fill='azure')
sp1 + geom_boxplot(aes(group=Time),fill='beige')
sp1 + geom_boxplot(aes(group=Time),fill='bisque')
sp1 + geom_boxplot(aes(group=Time),fill='blanchedalmond')
sp1 + geom_boxplot(aes(group=Time),fill='blueviolet')
sp1 + geom_boxplot(aes(group=Time),fill='brown')
sp1 + geom_boxplot(aes(group=Time),fill='burlywood')
`sp1 + geom_boxplot(aes(group=Time),fill='cadetblue')`
sp1 + geom_boxplot(aes(group=Time),fill='chartreuse')
sp1 + geom_boxplot(aes(group=Time),fill='chocolate')
sp1 + geom_boxplot(aes(group=Time),fill='coral')
sp1 + geom_boxplot(aes(group=Time),fill='cornflowerblue')
sp1 + geom_boxplot(aes(group=Time),fill='cornsilk')
sp1 + geom_boxplot(aes(group=Time),fill='cyan')
sp1 + geom_boxplot(aes(group=Time),fill='blue')
参考文献:Practical Receipes for Visualizing Data----R Graphics Cookbook —Winston Chang O’REILLY
百度文库—颜色大全:含中英文对照及色值
开发环境:RStudio和微信截屏工具