# [R] How to put values of 25 and 75 percentile on boxplot?

Wiener, Matthew matthew_wiener at merck.com
Wed Jun 5 17:44:39 CEST 2002

```Hi.

The 25th and 75th percentiles are on the boxplot:  they're the lower and
upper edges of the box.  So I'm guessing you want to print the text next to
the edges, you'll need to capture the output of boxplot and look at the
"stats" element.  Then, with a little bit of messing around to get the
locations you want right, you should be able to use "text".  Take a look at
the help pages for boxplot and boxplot.stats (which actually gets the
statistics).

Hope this helps,

Matthew Wiener
Applied Computer Science and Mathematics Department
Merck Research Labs
Rahway, NJ  07065-0900
732-594-5303

-----Original Message-----
From: Xiao, Nianqing (NCI) [mailto:xiaon at mail.nih.gov]
Sent: Wednesday, June 05, 2002 11:04 AM
To: r-help at stat.math.ethz.ch
Subject: [R] How to put values of 25 and 75 percentile on boxplot?

Hi all,

One quick question:
How to put values of 25 and 75 percentile on boxplot?

Nianqing Xiao, Ph.D
NCI Center for Bioinformatics, NIH
> 6116 EXECUTIVE BLVD 4026J
> MSC 8335
> BETHESDA MD 20852
Phone: 301-451-6357
Fax: 301-480-4222

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._

------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message.  If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it.

==============================================================================

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

```