简体   繁体   English

levelplot框线宽R.

[英]levelplot box line width R

Does any know how to change the line width of a levelplot graphic, especially that with multiple panels? 有没有人知道如何更改levelplot图形的levelplot ,尤其是多个面板的线宽? The box line width should change alongside the tick marks. 箱线宽度应与刻度线一起变化。 In base R one can use plot(x);box(lwd=10) . 在基数R可以使用plot(x);box(lwd=10)

Is this possible within levelplot? 这是否可以在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)))

You can set the border line widths with the par.settings 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)))

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM