簡體   English   中英

如何刪除R包“rasterVis”中“levelplot”中的框架

[英]How to remove the box frame in “levelplot” in R package “rasterVis”

我想刪除柵格數據集的“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.

[編輯:數字補充]

您想要實現的內容在?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"))`

框架,帶背景和顏色被刪除

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM