[R] annotate histogram
Tom Fletcher
tom.fletcher.mp7e at statefarm.com
Tue Nov 1 17:27:40 CET 2011
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.
More information about the R-help
mailing list