Re: [R] plots

From: Charles Annis, P.E. <Charles.Annis_at_statisticalengineering.com>
Date: Sun 12 Feb 2006 - 05:54:33 EST


You could substitute  

lines(kernelgraf)

for your last line:

points(kernelgraf, xlab="Probability", xlim=c(0,100), ylim=c(0,.1), col=rgb(0,0,1), main="")

See
?lines

Charles Annis, P.E.

Charles.Annis@StatisticalEngineering.com phone: 561-352-9699
eFax: 614-455-3265
http://www.StatisticalEngineering.com  

-----Original Message-----
From: r-help-bounces@stat.math.ethz.ch
[mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of statistical.model@googlemail.com
Sent: Saturday, February 11, 2006 1:44 PM To: r-help@stat.math.ethz.ch
Subject: [R] plots

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!

R-help@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 Received on Sun Feb 12 06:01:46 2006

This archive was generated by hypermail 2.1.8 : Tue 14 Feb 2006 - 00:39:07 EST