R语言基础绘图函数中par(mgp)选项的作用
001、par(mgp)选项的作用是调整坐标轴标签、刻度标签、刻度框线距离绘图区域的距离。
par(mfrow = c(2, 2)) par(mgp = c(3, 2, 0)) plot(1:10, main = "3 2 0", cex.main = 3) box(which = "figure", lwd = 5) box(which = "plot", lwd = 5) par(mgp = c(3, 1, 0)) plot(1:10, main = "3 1 0", cex.main = 3) box(which = "figure", lwd = 5) box(which = "plot", lwd = 5) par(mgp = c(1, 1, 0)) plot(1:10, main = "1 1 0", cex.main = 3) box(which = "figure", lwd = 5) box(which = "plot", lwd = 5) par(mgp = c(1, 1, 1)) plot(1:10, main = "1 1 1", cex.main = 3) box(which = "figure", lwd = 5) box(which = "plot", lwd = 5)