R语言ggplot2可视化分面图(faceting、facet_wrap)、编写自定义函数将生成的分面图(faceting)分裂成多个子图、并按照索引读取对应的可视化图像
目录
#R语言ggplot2可视化分面图(faceting、facet_wrap)
#R语言编写自定义函数将生成的分面图(faceting)分裂成多个子图、并按照索引读取对应的可视化图像(Split facet plot into list of plots)
#仿真数据
df <- data.frame(x=seq(1,24,1), y=seq(1,24,1), z=rep(seq(1,12),each=2))
df
x y z
1 1 1 1
2 2 2 1
3 3 3 2
4 4 4 2
5 5 5 3