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 the red marks at the bottom of the bars. Could anybody help? Thank you very much -- View this message in context: http://r.789695.n4.nabble.com/annotate-histogram-tp3963960p3963960.html Sent from the R help mailing list archive at Nabble.com.
Hi, You can use function segments() to draw them. Regards, Carlos Ortega www.qualityexcellence.es 2011/11/1 Wendy <wendy2.qiao@gmail.com>> 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 the red marks at the bottom of > the bars. Could anybody help? Thank you very much > > -- > View this message in context: > http://r.789695.n4.nabble.com/annotate-histogram-tp3963960p3963960.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. >[[alternative HTML version deleted]]
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-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Wendy Sent: Tuesday, November 01, 2011 10:22 AM To: r-help at r-project.org Subject: [R] annotate histogram 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 the red marks at the bottom of the bars. Could anybody help? Thank you very much -- View this message in context: http://r.789695.n4.nabble.com/annotate-histogram-tp3963960p3963960.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.