Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.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 在基本打印功能中设置光栅打印的X和y限制_R_Raster - Fatal编程技术网

R 在基本打印功能中设置光栅打印的X和y限制

R 在基本打印功能中设置光栅打印的X和y限制,r,raster,R,Raster,我试图以米为单位绘制NAD 1983中投影的光栅(.tif)。我可以使用r中的基本打印功能打印光栅,但它不使用我提供的光栅的最小值和最大值。x和Y的极限有点远,形成了一个间隙。如能更正,我将不胜感激。下面是我的代码 Mean_LST_ssp126.slope=calc(Mean_LST, fun) plot(Mean_LST_ssp126.slope, xlim = c(xmin(Mean_LST_ssp126.slope), xmax(Mean_LST_ssp126.slope)), ylim

我试图以米为单位绘制NAD 1983中投影的光栅(.tif)。我可以使用r中的基本打印功能打印光栅,但它不使用我提供的光栅的最小值和最大值。x和Y的极限有点远,形成了一个间隙。如能更正,我将不胜感激。下面是我的代码

Mean_LST_ssp126.slope=calc(Mean_LST, fun)
plot(Mean_LST_ssp126.slope, xlim = c(xmin(Mean_LST_ssp126.slope), xmax(Mean_LST_ssp126.slope)), ylim = c(ymin(Mean_LST_ssp126.slope), ymax(Mean_LST_ssp126.slope)), axes = TRUE)
Mean_LST_ssp126.slope
class      : RasterLayer 
dimensions : 3755, 4797, 18012735  (nrow, ncol, ncell)
resolution : 30, 30  (x, y)
extent     : 550583.3, 694493.3, 1569065, 1681715  (xmin, xmax, ymin, ymax)
crs        : +proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +datum=NAD83 +units=m +no_defs +ellps=GRS80 +towgs84=0,0,0 
source     : memory
names      : layer 
values     : -17.14911, 21.60128  (min, max)

可以调整打印设备的大小以删除空白。