Tier line width levelplot R

Does anyone know how to change the line width of a chart levelplot, especially with multiple panels? The line width of the box should change along with the mark marks. The database Rcan be used plot(x);box(lwd=10).

Is this possible in levelplot?

Many thanks.

library(rasterVis)
mycolors=c("darkred","red3", "orange", "yellow", "lightskyblue", 
          "royalblue3","darkblue")
s <- stack(replicate(6, raster(matrix(runif(100), 10))))
levelplot(s, layout=c(3, 2), col.regions=mycolors, index.cond=list(c(1, 3, 5, 2, 4, 6)))
+4
source share
1 answer

You can set the width of the border line with an argument par.settings. For example:

levelplot(s, layout=c(3, 2), col.regions=mycolors, 
          index.cond=list(c(1, 3, 5, 2, 4, 6)), 
          par.settings=list(axis.line=list(lwd=3), strip.border=list(lwd=3)))

enter image description here

+3
source

Source: https://habr.com/ru/post/1625581/


All Articles