[R] help with lattice boxplots...

Claudia Beleites cbeleites at units.it
Mon Mar 1 17:31:41 CET 2010


you can use parameters:

trellis.par.set (box.rectangle = modifyList (trellis.par.get ("box.rectangle"), 
list (col = "black")))

bwplot(y~x, data=ex, pch = "|")


I think the others go along the same line. Look into panel.bwplot to see what 
parameters are used to produce what.

HTH Claudia


Kim Jung Hwa wrote:
> Hi All,
> 
> I need a small help with following code: I'm trying to convert "dashed
> lines" to regular ones; and changing default "blue" border color to say
> "black"... but I'm doing it wrong and its not working. Can anyone help
> please. Thanks,
> 
> Code:
> require(lattice)
> ex <- data.frame(x=1:10, y=rep(c("A","B"), 5))
> bwplot(y~x, data=ex,
>   panel=function(x,y,...) {
>    panel.bwplot(x, y, pch="|", border="black", lty=1,...)
>   }
> )
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list