R语言绘制不同颜色组合的视觉通道映射效果1
library(ggplot2)
df<-read.csv("Facet_Data.csv", header = TRUE)
p1<-ggplot(df, aes(x=SOD,y=tau,size=age)) +
geom_point(shape=21,color="black",fill="#F0F8FF",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 = "Set3")
p3<-ggplot(df, aes(x=SOD,y=tau,fill=Class)) +
geom_point(shape=21,size=3,colour="black",stroke=0.25)
p4<-ggplot(df, aes(SOD,tau,fill=Class,size=age)) +
geom_point(shape=21,colour="black",stroke=0.25,
alpha=0.8)
library(gridExtra)
grid.arrange(p1,p2,ncol = 2, nrow =1)

p1<-ggplot(df, aes(x=SOD,y=tau,size=age)) +
geom_point(shape=21,color="black",fill="#FAEBD7",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 = "Paired")

p1<-ggplot(df, aes(x=SOD,y=tau,size=age)) +
geom_point(shape=21,color="black",fill="#00FFFF",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 = "Dark2")

p1<-ggplot(df, aes(x=SOD,y=tau,size=age)) +
geom_point(shape=21,color="black",fill="#7FFFD4",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 = "Pastel1")

p1<-ggplot(df, aes(x=SOD,y=tau,size=age)) +
geom_point(shape=21,color="black",fill="#F0FFFF",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 = "Pastel2")

p1<-ggplot(df, aes(x=SOD,y=tau,size=age)) +
geom_point(shape=21,color="black",fill="#F5F5DC",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 = "Accent")

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 = "Blues")

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 = "BuGn")

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 = "BuPu")

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 = "GnBu")

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 = "Greens")

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 = "Greys")

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 = "Oranges")

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 = "OrRd")

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 = "PuBu")

参考文献:
https://bbs.huaweicloud.com/blogs/383524
百度百科:中英文颜色参照大全
开发工具:RStudio与微信截屏工具
- 点赞
- 收藏
- 关注作者
评论(0)