Re: [R] annotate histogram

2011-11-01 Thread Tom Fletcher
See rug() and use col=2 to get red. So, as an example ... x <- rchisq(100, df=2) hist(x) abline(v=median(x), lty=2) rug(x, col=2) TF -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Wendy Sent: Tuesday, November 01, 2011 10:22 AM T

Re: [R] annotate histogram

2011-11-01 Thread Carlos Ortega
Hi, You can use function segments() to draw them. Regards, Carlos Ortega www.qualityexcellence.es 2011/11/1 Wendy > Hi all, > > I want to make a histogram like the one show > http://nar.oxfordjournals.org/content/39/suppl_1/D1011/F1.expansion.html > here , but I did not figure out how to add