R语言绘制不同颜色组合的视觉通道映射效果2
p1<-ggplot(df, aes(x=SOD,y=tau,size=age)) +
geom_point(shape=21,color="black",fill="#DC143C",stroke=0.25)
p2<-ggplot(df, aes(SOD,tau,fill=age,size=age)) +
geom_point(shape=21,colour="black",stroke=0.25,
alpha=0.8)+scale_fill_distiller(palette = "PuBuGn")

p1<-ggplot(df, aes(x=SOD,y=tau,size=age)) +
geom_point(shape=21,color="black",fill="#FFF8DC",stroke=0.25)
p2<-ggplot(df, aes(SOD,tau,fill=age,size=age)) +
geom_point(shape=21,colour="black",stroke=0.25,
alpha=0.8)+scale_fill_distiller(palette = "PuRd")

p1<-ggplot(df, aes(x=SOD,y=tau,size=age)) +
geom_point(shape=21,color="black",fill="#6495ED",stroke=0.25)
p2<-ggplot(df, aes(SOD,tau,fill=age,size=age)) +
geom_point(shape=21,colour="black",stroke=0.25,
alpha=0.8)+scale_fill_distiller(palette = "Purples")
p1<-ggplot(df, aes(x=SOD,y=tau,size=age)) +
geom_point(shape=21,color="black",fill="#FF7F50",stroke=0.25)
p2<-ggplot(df, aes(SOD,tau,fill=age,size=age)) +
geom_point(shape=21,colour="black",stroke=0.25,
alpha=0.8)+scale_fill_distiller(palette = "RdPu")

p1<-ggplot(df, aes(x=SOD,y=tau,size=age)) +
geom_point(shape=21,color="black",fill="#D2691E",stroke=0.25)
p2<-ggplot(df, aes(SOD,tau,fill=age,size=age)) +
geom_point(shape=21,colour="black",stroke=0.25,
alpha=0.8)+scale_fill_distiller(palette = "Reds")

p1<-ggplot(df, aes(x=SOD,y=tau,size=age)) +
geom_point(shape=21,color="black",fill="#7FFF00",stroke=0.25)
p2<-ggplot(df, aes(SOD,tau,fill=age,size=age)) +
geom_point(shape=21,colour="black",stroke=0.25,
alpha=0.8)+scale_fill_distiller(palette = "YlGn")

p1<-ggplot(df, aes(x=SOD,y=tau,size=age)) +
geom_point(shape=21,color="black",fill="#5F9EA0",stroke=0.25)
p2<-ggplot(df, aes(SOD,tau,fill=age,size=age)) +
geom_point(shape=21,colour="black",stroke=0.25,
alpha=0.8)+scale_fill_distiller(palette = "YlGnBu")

p1<-ggplot(df, aes(x=SOD,y=tau,size=age)) +
geom_point(shape=21,color="black",fill="#DEB887",stroke=0.25)
p2<-ggplot(df, aes(SOD,tau,fill=age,size=age)) +
geom_point(shape=21,colour="black",stroke=0.25,
alpha=0.8)+scale_fill_distiller(palette = "YlOrBr")

p1<-ggplot(df, aes(x=SOD,y=tau,size=age)) +
geom_point(shape=21,color="black",fill="#A52A2A",stroke=0.25)
p2<-ggplot(df, aes(SOD,tau,fill=age,size=age)) +
geom_point(shape=21,colour="black",stroke=0.25,
alpha=0.8)+scale_fill_distiller(palette = "YlOrRd")

p1<-ggplot(df, aes(x=SOD,y=tau,size=age)) +
geom_point(shape=21,color="black",fill="#8A2BE2",stroke=0.25)
p2<-ggplot(df, aes(SOD,tau,fill=age,size=age)) +
geom_point(shape=21,colour="black",stroke=0.25,
alpha=0.8)+scale_fill_distiller(palette = "Spectral")

p1<-ggplot(df, aes(x=SOD,y=tau,size=age)) +
geom_point(shape=21,color="black",fill="#FFEBCD",stroke=0.25)
p2<-ggplot(df, aes(SOD,tau,fill=age,size=age)) +
geom_point(shape=21,colour="black",stroke=0.25,
alpha=0.8)+scale_fill_distiller(palette = "RdYlGn")
参考文献:
https://bbs.huaweicloud.com/blogs/383524
百度百科:中英文颜色参照大全
开发工具:RStudio与Alt+A快捷截屏
- 点赞
- 收藏
- 关注作者
评论(0)