Well, maybe I didn't write it clear. I know how to create scatterplot, and how to import data from csv file. But I do not know how to add this fitting that mentioned in sumbject to a plot. I do not know for what function name to look for in R. I played some time with ls, and it didn't create a line. I know the name for the fitting I ned from Statistica, and this is from help from this program:
"A curve is fitted to the XY coordinate data according to the distance-weighted least squares smoothing procedure (the influence of individual points decreases with the horizontal distance from the respective points on the curve). For more information, see Distance-Weighted Least Squares." Now I need to recreate it in R. Sorry again for not being clear. -- View this message in context: http://r.789695.n4.nabble.com/please-show-me-simple-example-how-to-plot-Distance-Weighted-Least-Squares-fitting-tp3076824p3076863.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.