R语言基础绘图中par(mai)选项的作用
001、mai的作用是调整绘图区域与外围框线的距离。
par(mfrow = c(2, 2)) par(mai = c(0.5,0.5,0.5,0.5)) plot(1:10, main = "mai = 0.5", cex.main = 3) box(which = "figure", lwd = 5) box(which = "plot", lwd = 5) par(mai = c(1, 1, 1, 1)) plot(1:10, main = "mai = 1", cex.main = 3) box(which = "figure", lwd = 5) box(which = "plot", lwd = 5) par(mai = c(1.5,1.5,1.5,1.5)) plot(1:10, main = "mai = 1.5", cex.main = 3) box(which = "figure", lwd = 5) box(which = "plot", lwd = 5) par(mai = c(2, 2, 2, 2)) plot(1:10, main = "mai = 2", cex.main = 3) box(which = "figure", lwd = 5) box(which = "plot", lwd = 5)