4

我想删除栅格数据集的“levelplot”图中的框框。不知道该怎么做。

library(raster)
library(rasterVis)

f <- system.file("external/test.grd", package="raster")
r <- raster(f)
s <- stack(r, r+500, r-500)
levelplot(s, contour=TRUE)
levelplot(s)
levelplot(s,box=FALSE,axes=FALSE) # It doesn't work.
4

1 回答 1

11

[编辑:添加的数字]

您想要实现的目标在最后一个示例中描述?wireframe

levelplot(s, contour = TRUE, par.settings = list(axis.line = list(col = "transparent")), 
          scales = list(col = "black"))`

移除框框

如果要删除条形背景和颜色:

levelplot(s, contour=TRUE, par.settings = list(axis.line = list(col = "transparent"), 
          strip.background = list(col = 'transparent'), 
          strip.border = list(col = 'transparent')), 
          scales = list(col = "black"))`

框框、条形背景和颜色已移除

于 2014-06-11T22:24:11.887 回答