[R] How to plot two different lines with different color with the same "plot" function?

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Nov 23 10:37:26 CET 2005


¹ãÐÇ wrote:

> Hi,R_Help!
> I have done something like this:
> 
>>x<-seq(412,612,1)
>>plot(x,dpois(x,512),col="blue",type="l")
>>plot(x,dnorm(x,512,sd=sqrt(512)),col="red",type="l")
> 
> And now,I want to plot the two lines in the same picture or with the same "plot" action?
> What should I do? 
> And any advises? 	


Please read the psoting guide. It points you to the mailing list
archives where this question has been answered hundreds of times.

Uwe Ligges


> Thank you in advance!
>  				
> 
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¹ãÐÇ
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡guangxing at ict.ac.cn
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2005-11-23
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ______________________________________________
> 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




More information about the R-help mailing list