Re: [R] multiple density function

2006-09-19 Thread Anupam Tyagi
march marcella.marinelli at uniroma1.it writes: Hi everybody I'm new in R so the question will be easy for you I'm running multiple density functions taking account of the following conditions: mean=seq(10,1,length=10) var=seq(3,1,length=10) How can I describe the density

Re: [R] multiple density function

2006-09-19 Thread David Barron
Would this do what you want: m=seq(10,1,length=10) v=seq(3,1,length=10) x - seq(-5,20,length=500) plot(x,dnorm(x,m[1],v[1])) for (i in 1:10) plot(x,dnorm(x,m[i],v[i]),type=l,col=i) On 19/09/06, Anupam Tyagi [EMAIL PROTECTED] wrote: march marcella.marinelli at uniroma1.it writes:

[R] multiple density function

2006-09-18 Thread march
Hi everybody I'm new in R so the question will be easy for you I'm running multiple density functions taking account of the following conditions: mean=seq(10,1,length=10) var=seq(3,1,length=10) How can I describe the density functions on the same chart? thanks Marcella -- View this