Skip to content

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

4 messages · M. K., Dieter Menne, M.K. +1 more

#
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...
#
M. K. <mk_lists <at> yahoo.ca> writes:
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 ()!

Check the code for something like points (which is the default).
Find a mysterious '|' and pch

Dieter
#
Dieter Menne <dieter.menne <at> menne-biomed.de> writes:
Yes, that was it!  Thanks Dieter!  The mysterious code is right near the bottom
of the function.  Too bad this is not documented, at least not in ?panel.bwplot.
#
On 8/18/05, Dieter Menne <dieter.menne at menne-biomed.de> wrote:
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