[R] please show me simple example how to plot

Peter Ehlers ehlers at ucalgary.ca
Tue Dec 7 18:58:24 CET 2010

On 2010-12-07 09:37, madr wrote:
> 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."

Sounds like loess() to me.

Peter Ehlers

> Now I need to recreate it in R.
> Sorry again for not being clear.

More information about the R-help mailing list