las 参数控制x轴和y轴的刻度线上的标签与两条轴的防线,可选值为0,1,2,3
0为默认值,代表始终与刻度线平行,代码示例:
par(las = 0)
plot(1:5, 1:5, main = "title", xlab = "x", ylab = "y")
效果图如下:
1代表始终处于水平方向, 代码示例
par(las = 1)
plot(1:5, 1:5, main = "title", xlab = "x", ylab = "y")
效果图如下:
2代表垂直于刻度线,代码示例
par(las = 2)
plot(1:5, 1:5, main = "title", xlab = "x", ylab = "y")
效果图如下:
3代表始终处于竖直方向,代码示例
par(las = 3)
plot(1:5, 1:5, main = "title", xlab = "x", ylab = "y")
效果图如下: