Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/74.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何增加r中图例的间隔?_R_Plot - Fatal编程技术网

如何增加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

我正在使用此命令(包字段)绘制我的数据: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", 
           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))