如何增加r中图例的间隔?
我正在使用此命令(包字段)绘制我的数据:r如何增加r中图例的间隔?,r,plot,R,Plot,我正在使用此命令(包字段)绘制我的数据:r image.plot((r),main = " RMSD", add = FALSE,legend.shrink = 0.9, legend.width = 1.2, legend.mar = 5.1, graphics.reset = FALSE, horizontal = FALSE, xlab = "Longitude", ylab = "Latitude", bigplo
image.plot((r),main = " RMSD", add = FALSE,legend.shrink = 0.9,
legend.width = 1.2, legend.mar = 5.1, graphics.reset = FALSE,
horizontal = FALSE, xlab = "Longitude", ylab = "Latitude",
bigplot = NULL, smallplot = NULL, legend.only = FALSE,
lab.breaks = NULL, axis.args = NULL)
但图例上显示的数字(间隔)如下所示
0 0.1 0.2 0.3 0.4
我很感激任何人告诉我如何改变它,使之成为
0 0.05 0.1 0.15 0.2 0.25 0.3 0.35
由于未提供示例数据,因此使用了函数
image.plot()
help文件中提供的数据
x<- 1:10
y<- 1:15
z<- outer( x,y,"+")
image.plot(x,y,z,breaks=seq(2,24,2),col = terrain.colors(11),
lab.breaks=seq(2,24,2))