[R] How to produce notches in bwplot?

From: Michael Kubovy <kubovy_at_virginia.edu>
Date: Mon 27 Feb 2006 - 04:35:21 EST


Dear r-helpers,

tst <- data.frame(as.numeric(x <- 1:20), f <- rep(c('hi','lo'), times
= 10))

with(tst, bwplot(f ~ x, panel = function(x, y){panel.bwplot(x, y, pch
= '|', stats = boxplot.stats, fill = 8, varwidth = T)}))

I can't figure out from the documentation how to tell stats that I would like to see notches or (even bands).

Here is what I've done. (By the way, there is something about the style of R documentation that has --- more than once --- led me to these kinds of problems.)
RSiteSearch('bwplot notch') gives me nothing (as well as other similar queries).
xyplot {lattice} tells me about panel.bwplot, but does not illustrate its use.
panel.bwplot {lattice} tells me about the fact that the default setting of stats to boxplot.stats, but doesn't give an example. boxplot.stats {grDevices} tells me that the default setting is do.conf = TRUE, which I gathered meant that notches would be computed and hence plotted.

Does anyone have advice about how I could have gone about finding out how to do this (preferably from documentation rather than reading code)?



Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766

WWW: http://www.people.virginia.edu/~mk9y/

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Feb 27 04:46:32 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:45 EST