我想画这个:
plot( 0, 0, type = "n",xlim =c(-3, 3), ylim =c(-5, 5), xlab = "x", ylab = "y" )
但是,在该图上,它显示y轴范围不是c(-5,5)而是c(-4,4)。
答案 0 :(得分:4)
它是基于刻度标签的,我们可以做
plot( 0, 0, type = "n",xlim =c(-3, 3), ylim =c(-4, 4),
xlab = "x", ylab = "y" , yaxt = 'n')
axis(2, -4:4)