R语言中asp参数的作用

 

1、asp参数用于定义绘图区域纵轴与横轴的比例

par(mfrow = c(2, 2))
plot(1:10, cex = 3, pch = 16, main = "asp = 1", cex.main = 3, asp = 1)
plot(1:10, cex = 3, pch = 16, main = "asp = 2", cex.main = 3, asp = 2)
plot(1:10, cex = 3, pch = 16, main = "asp = 4", cex.main = 3, asp = 4)
plot(1:10, cex = 3, pch = 16, main = "asp = 8", cex.main = 3, asp = 8)

 

绘图效果:

 

posted @ 2022-05-07 19:34  小鲨鱼2018  阅读(210)  评论(0编辑  收藏  举报