我已经创建了一个直方图来显示LULC的像素值。我使用的代码是:-RupandehiLULC19<-raster('C:/Users/lenovo/Desktop/EM/RupandehiLULC2.tif')hist(RupandehiLULC19, main="Boxplot of LULC By Pixel Value", xlab="Pixel Val
在用R绘制盒子图时,我注意到不是y轴中的所有值都是显示出来的.可能的值是-5到5,但是实际值是-1.3到4.6,所以y轴上的值是-2到5,我希望它用所有的值来表示:-5到5,即使没有关于整个范围的数据。我的代码如下所示:
boxplot(depvar ~ indepvar, data = a, pars = list(outlwd = 2, outcex = 1.