[R] line/bar through median in lattice's "bwplot"?

Deepayan Sarkar deepayan.sarkar at gmail.com
Thu Aug 18 18:42:50 CEST 2005


On 8/18/05, Dieter Menne <dieter.menne at menne-biomed.de> wrote:
> M. K. <mk_lists <at> yahoo.ca> writes:
> 
> >
> > Is there a way to render a line through the median point in the boxplot
> > generated by the Lattice command "bwplot"?  The line basically bisects
> > the bar at the median point...
> 
> 
> bwplot(height~voice.part , pch='|', data=singer, xlab="Height (inches)")
> 
> How to find this (haven't checked, maybe it's documented)
> library(lattice)
> panel.bwplot # no ()!

It's not documented (and only available in the very recent versions of
lattice, BTW), as I realized last night.  It will be documented in a
soon-to-come version (and maybe even honour attempts to change its
color, line type, etc).

Deepayan




More information about the R-help mailing list