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

2005-11-23 Thread 广星
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? Thank you in

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

2005-11-23 Thread Uwe Ligges
广星 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?

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

2005-11-23 Thread Petr Pikal
On 23 Nov 2005 at 16:59, ąăĐÇ wrote: Date sent: Wed, 23 Nov 2005 16:59:38 +0800 From: ąăĐÇ [EMAIL PROTECTED] To: R-help@stat.math.ethz.ch R-help@stat.math.ethz.ch Subject:[R] How to plot two different lines with different color