[R] help in plotting
dwinsemius at comcast.net
Sat Nov 24 20:12:37 CET 2007
"G Ilhamto" <gilhamto at gmail.com> wrote in
news:bebd16360711232355q5e1e68eeke177f7f061829d9c at mail.gmail.com:
> I want to combine several plots in one graph.
> I did this: plot(a1); plot(a2, add=TRUE); ...plot(a5, add=TRUE)
> The problem is the more plot we put, the more complex the graph.
> Is there any way to label each line; or other way just to make sure I
> know which one which?
This is a worked example taken from Seefeld and Kim's monograph:
plot(x,dgamma(x,shape=2,scale=1), type='l',xlab="x", ylab="f(x)", main="Gamma pdf's")
More information about the R-help