R语言中layout函数设置画板布局

 

001、

layout(matrix(c(2,0,1,3), 2, 2, byrow = T), widths = c(5, 2), heights = c(2,5))     ##  设置画板布局

par(mar = c(2, 2, 2, 2))
plot(1:10, cex = 2, pch = 19, col = "red")
text(5,5,"11111")


par(mar = c(2, 2, 2, 2))
plot(1:10, cex = 2, pch = 19, col = "blue")
text(5,5,"2222")


par(mar = c(2, 2, 2, 2))
plot(1:10, cex = 2, pch = 19, col = "purple")
text(5,5,"3333")

 

 

 

posted @ 2025-07-24 17:03  小鲨鱼2018  阅读(11)  评论(0)    收藏  举报