[R] Boxplot graphic

Uwe Ligges ligges at statistik.tu-dortmund.de
Wed Jul 25 15:08:07 CEST 2012

On 25.07.2012 13:26, phillen wrote:
> Dear R-users!
> I boxplotted some data. the class of the data is numeric. There are some
> outliers and I would like to see their names in the graphic. So, instead
> that the data points of the outliers are plotted as points, I would like to
> have their names plotted.
> First of, how can I give my data series (class numeric) names?

See ?names

> Second, how
> could I adjust the boxplot to see the names of the outliers in the graphic
> instead of the points?

See ?boxplot


x <- c(1:10, 100)
names(x) <- letters[1:11]
bp <- boxplot(x)
text(1, bp$out, names(x)[bp$out==x], pos=2)

> cheers
> --
> View this message in context: http://r.789695.n4.nabble.com/Boxplot-graphic-tp4637761.html
> Sent from the R help mailing list archive at Nabble.com.
> ______________________________________________
> R-help at 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.

More information about the R-help mailing list