Skip to content
Prev 165250 / 398506 Next

error bars

Hi,

These are rather basic; I'd strongly suggest that you at least
read An Intro to R, and maybe some of the other excellent
beginner materials available. The answers are also
easily available through Google, or RSiteSearch.
That's a FAQ:
http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-create-rotated-axis-labels_003f
dev.off()
If you want more than one kind of symbol, you need to specify
that - in your example you only gave pch 16, so that's all
that is used. legend() doesn't "know" anything about your
plot. You need something like:
legend("right",   legend=c("Model","Obs"), pch=c(1,2), lty=c(3,4))
You can draw it yourself with segments(), but easier is to
use errbar from the Hmisc package
Sarah