Re: [R] Label outliers in boxplot

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

> simply when I boxplot i use
>
> boxplot(as.data.frame(z))
>
> 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 (http://tolstoy.newcastle.edu.au/R/help/05/09/12735.html) or get them with the identify function
(http://tolstoy.newcastle.edu.au/R/e2/help/07/01/8598.html). 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
http://www.vims.edu/fish/students/dhewitt/
-- 
View this message in context: http://www.nabble.com/Label-outliers-in-boxplot-tp15712733p15725405.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.
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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive