[R] Choice of notch size in R

Richard.Cotton at hsl.gov.uk Richard.Cotton at hsl.gov.uk
Mon Apr 21 11:59:42 CEST 2008

> Is there a way to modify the choice of notch size [1] in R's boxplot 
> routine from outlining a 5% significance region, to say 1% or lower?

Yes, but it's not as simple as specifying the significance level.  You'll 
have to update the function boxplot.stats, specifically the line
conf <- if (do.conf)  stats[3] + c(-1.58, 1.58) * iqr/sqrt(n)

Then you either need to modify boxplot to find your version of 
boxplot.stats, or call bxp (the low-level plotting function that boxplot 
calls) directly.


Mathematical Sciences Unit


This message contains privileged and confidential inform...{{dropped:20}}

More information about the R-help mailing list