Re: [R] smoothing a plot in r

2014-03-20 Thread Babak Bastan
thanks you so much On Thu, Mar 20, 2014 at 10:25 AM, MacQueen, Don wrote: > Perhaps you will understand the meaning better if you try the following > sequence: > > plot(datalist, ylab='Value') > lines(lowess(datalist),col="blue", lwd=2) > lines(lowess(datalist,f=1/3),col="red", lwd=2) > lines(l

Re: [R] smoothing a plot in r

2014-03-20 Thread MacQueen, Don
Perhaps you will understand the meaning better if you try the following sequence: plot(datalist, ylab='Value') lines(lowess(datalist),col="blue", lwd=2) lines(lowess(datalist,f=1/3),col="red", lwd=2) lines(lowess(datalist,f=1/10),col="green", lwd=2) -Don -- Don MacQueen Lawrence Livermore Nat

[R] smoothing a plot in r

2014-03-20 Thread Babak Bastan
Hi friends Iwould like to smooth my plot. I have a plot which is wiggly and I want to smooth it. here is my data 539, 532, 531, 538, 544, 554, 575, 571, 543, 559, 511, 525, 512, 540, 535, 514, 524, 527, 532, 547, 564, 548, 572, 564, 549, 532, 519, 520, 520, 543, 550, 542, 528, 523, 531, 548, 554,