[R] Plotting multiple smooth lines on the same graph

2006-12-15 Thread Eleni Rapsomaniki
Hi Say we have the following data sets: d1=cbind(rnorm(100,1,1), rnorm(100,10,50)) d2=cbind(rnorm(100,5,1), rnorm(100,1,5)) I want to plot them both on the same graph with a curve fitted for each. I could call scatter.smooth to plot the first curve, but how do I add the second?

Re: [R] Plotting multiple smooth lines on the same graph

2006-12-15 Thread Chuck Cleland
Eleni Rapsomaniki wrote: Hi Say we have the following data sets: d1=cbind(rnorm(100,1,1), rnorm(100,10,50)) d2=cbind(rnorm(100,5,1), rnorm(100,1,5)) I want to plot them both on the same graph with a curve fitted for each. I could call scatter.smooth to plot the first curve, but how do I

Re: [R] Plotting multiple smooth lines on the same graph

2006-12-15 Thread Petr Pikal
@stat.math.ethz.ch Subject:[R] Plotting multiple smooth lines on the same graph Hi Say we have the following data sets: d1=cbind(rnorm(100,1,1), rnorm(100,10,50)) d2=cbind(rnorm(100,5,1), rnorm(100,1,5)) I want to plot them both on the same graph with a curve fitted