Try this:

set.seed(123)
DF <- data.frame(fac = gl(5, 20), values = rnorm(100))
bp <- boxplot(values ~ fac, data = DF, range = 0.5)
with(bp,
     text(x = unique(group),
          y = tapply(out, group, max),
          labels = round(tapply(out, group, max), 2),
          pos = 3))

On Tue, Sep 2, 2008 at 8:11 PM, Sherri Heck <sheck@ucar.edu> wrote:

> Hi Greg,
>
> I have the values of the outliers from the boxplot stats.  I am just having
> a difficult time adding the values to the plot in the appropriate places.
> Hope this is clearer.
>
> Thanks!
>
> sherri
>
>
> Greg Snow wrote:
>
>> Are you trying to find the values of the outliers? Or just how to add the
>> text to the plot in the appropriate place? Or both?
>>
>> --
>> Gregory (Greg) L. Snow Ph.D.
>> Statistical Data Center
>> Intermountain Healthcare
>> greg.snow@imail.org
>> (801) 408-8111
>>
>>
>>
>>
>>
>>> -----Original Message-----
>>> From: r-help-bounces@r-project.org
>>> [mailto:r-help-bounces@r-project.org] On Behalf Of Sherri Heck
>>> Sent: Tuesday, September 02, 2008 3:38 PM
>>> To: r-help@r-project.org
>>> Subject: [R] boxplot - label outliers
>>>
>>> Hi All-
>>>
>>> I have 24 boxplots on one graph.  I do not have the whiskers
>>> extending to the outliers, but I would like to label the
>>> maximum value of each outlier above the whiskers.  I have the
>>> stats but am having trouble figuring out how to label the whiskers.
>>>
>>> Any suggestions would be great!
>>>
>>> sherri
>>>
>>> ______________________________________________
>>> 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.
>>>
>>>
>>>
>>
>>
>>
> ______________________________________________
> 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]]

