Hello Mysimbaa, If you want to fit a smooth line to your data, there are many ways to do it. One option is to use splines. See the smooth.spline() function. If you only want to add a line to highlight the trend in your data, that should be enough. But if you want to do more serious analytical work, it is probably a good idea to learn about the different methods, its assumptions and limitations.
Julian mysimbaa wrote: > http://www.nabble.com/file/p13880048/Fluctuation.jpeg > > Hi R users, > > I have collected data which I plot(x,y).The problem it has oscillations. > Now i'm trying to "make better" this curve with a smooth line. And then > collect my new datas. > But I don't know how doing this. > > Perhaps a linear regression ?? > > See .jpeg foto. > > Thanks for any help it will be given. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.