[R] plots

statistical.model@googlemail.com statistical.model at googlemail.com
Sat Feb 11 19:44:25 CET 2006


Hi all,
I have a basic question. how can i visualize two or more density curves on
the same plot?

ex:
x1<-runif(100,10,80)
x2<-runif(100,1,100)
kernelgraf<-density(x1,kernel = "gaussian", width= 20)
plot(kernelgraf, xlab="Probability", xlim=c(0,100), ylim=c(0,.1),
col=rgb(0,1,0), main="")
kernelgraf<-density(x2,kernel = "gaussian", width= 20)
points(kernelgraf, xlab="Probability", xlim=c(0,100), ylim=c(0,.1),
col=rgb(0,0,1), main="")

here i am using plot + points, but i do not like the graphical output for
points.

can anybody help me?

thanks in advance

Roberto Furlan
University of Turin


----------------------------------------
La mia Cartella di Posta in Arrivo e protetta da SPAMfighter
204 messaggi contenenti spam sono stati bloccati con successo.
Scarica gratuitamente SPAMfighter!



More information about the R-help mailing list