[R] help with lattice boxplots...

Henrique Dallazuanna wwwhsd at gmail.com
Mon Mar 1 17:52:30 CET 2010


Try this:

bwplot(y~x, data=ex, pch = "|",
	 par.settings = list(box.rectangle = list(col = 'black')))

On Mon, Mar 1, 2010 at 1:09 PM, Kim Jung Hwa <kimhwamaillist at gmail.com> 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.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O



More information about the R-help mailing list