> x <- seq(0, 10, by=.1)
> plot(x,pexp(x, rate=1))
> points(x,pexp(x, rate=2), pch=2, col="blue")
See help(plot), help(points), help(lines).
Gabor
On Fri, Feb 03, 2006 at 01:07:30PM -0000, Xiao Zhao
wrote:> Hello,
> I am a research student and I am using R to access my research. I want
> to know how to multiple plot , such as for the exponetial distribution,
> if I give the covariate different value, how to plot these in the same
> figure,
> And also I want to add the density plot in the histogramm.
> How to do these?
> Thank u in advance
> nessie
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
--
Csardi Gabor <csardi at rmki.kfki.hu> MTA RMKI, ELTE TTK