I want the window to be built with thicker lines. In the boxplot
function boxplot
I just put lwd=2
, but in the bwplot
lattice I can pull my hair out and find no solution!
(with the box, I mean the blue thing in the image above)
Sample code for working with:
require(lattice) set.seed(123) n <- 300 type <- sample(c("city", "river", "village"), n, replace = TRUE) month <- sample(c("may", "june"), n, replace = TRUE) x <- rnorm(n) df <- data.frame(x, type, month) bwplot(x ~ type|month, data = df, panel=function(...) { panel.abline(h=0, col="green") panel.bwplot(...) })
source share