[R] plotting gaussian data

2006-06-13 Thread H. Paul Benton
Ok I guess it's time to ask. So I want to plot my data. It's my data from a frequency table, temp. My formula is just a Gaussian eq. I have done the nls function to get my parameters and now I want to do the whole plot (...) and then lines(..) This is what I have done. temp bin x 1 -4.0

Re: [R] plotting gaussian data

2006-06-13 Thread Jacques VESLOT
curve(coef$A * dnorm(x, coef$mu, coef$sig), -4, 4) --- Jacques VESLOT CNRS UMR 8090 I.B.L (2ème étage) 1 rue du Professeur Calmette B.P. 245 59019 Lille Cedex Tel : 33 (0)3.20.87.10.44 Fax : 33 (0)3.20.87.10.31