【发布时间】:2020-05-05 09:23:42
【问题描述】:
我已经使用函数'levelplot'脚本绘制了一堆栅格,如下所示:
library(raster)
library(rasterVis)
ras <- list.files("/filepath/", pattern = "\\.tif$", full=TRUE)
s <- stack(ras)
> levelplot(s, colorkey = list(space ="bottom",height=1, width=1),
names.attr=c("2011","2012","2013", "2014")))
绘图的问题是 x 轴标签“经度”的标签与绘图的颜色条/颜色键重叠。是否可以将颜色键的位置移动到标签“经度”下方一点?
谢谢
【问题讨论】: