[R] Boxplot: quartiles/outliers
Prof Brian Ripley
ripley at stats.ox.ac.uk
Mon Feb 12 08:50:01 CET 2007
If you look at boxplot.default you will see that it calls boxplot.stats to
compute the statistics used. So you can make renamed copies of both
functions and alter them to behave as you like. (Because of namespace
issues, you cannot just use your own boxplot.stats.)
I am not sure why you would want to do this, and a 'box and whiskers plot'
was pretty closely defined by the original authors so R does not allow
options for forms they did not consider. But as it is a programming
language it is pretty easy to produce your own version.
On Sun, 11 Feb 2007, Cecilia Alm wrote:
> For boxplot(), is it possible to pass in a parameter to change the default
> way that the 1st and 3rd quartiles are computed? (specifically, I'd like to
> use type 6 described in the quantile function).
> Also, what are the options for how outliers are computed, and how can one
> change them?
> Thank you
> [[alternative HTML version deleted]]
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help