[R] How to add a line on the boxplot

From: Jiantao Shi <bioconductor.cn_at_gmail.com>
Date: Sat 22 Jul 2006 - 19:34:34 EST

I have a data frame,

> df=rnorm(1000)
> dim(df)=c(100,10)
And i can get the boxplot,

> boxplot(data.frame(df))

So how can add a line (aline) on the existing boxplot,eg, aline=apply(df,2,max)

Thanks in advance.

        [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch 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 Sat Jul 22 19:39:26 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 22 Jul 2006 - 20:15:34 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.