Try this: bp <- boxplot(c(4,rnorm(20),8)) bp$out
On Wed, Sep 9, 2009 at 4:25 PM, <g...@ucalgary.ca> wrote: > I am wondering if you know how to return by function or show in boxplot, > the indexes of unusual points, such as, > points that are outside the box or in [Q3+1.5IQR,Max]. > For example, > > > boxplot(c(4,rnorm(20),8)) > > There are 2 unusual points 4 and 8. How to show the indexes of 4 and 8 in > the boxplot > or return them by function? > > Thanks, > > -james > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.