Re: [R] Label outliers in boxplot

From: David Hewitt <>
Date: Wed, 27 Feb 2008 14:48:57 -0800 (PST)

> simply when I boxplot i use
> boxplot(
> I would like the rownames to appear close to the outliers in the boxplot.
> There is a command to do it ? I've seen the identify() function but I'm
> not able to obtain any results.

Your data frame came through scrambled for me. From the posting guide comes a hint on making this easier for readers to help you:

"When providing examples, it is best to give an R command that constructs the data ... For more complicated data structures, dump("x", file=stdout()) will print an expression that will recreate the object x."

That aside, there's some help for you in '?boxplot'. See the values in the returned object; the outliers are identified already. You can call them out separately ( or get them with the identify function
( Note that the last Identify command in the latter link should be a lowercase identify.

I got those by searching the mail archives (originally).

David Hewitt
Virginia Institute of Marine Science
View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 27 Feb 2008 - 22:52:00 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 27 Feb 2008 - 23:30:19 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive