Try this: cars.lo <- loess(dist ~ speed, cars) with(cars, plot(speed, dist)) lines(predict(cars.lo), col="blue")
On 03/02/2008, Marcin Kozak <[EMAIL PROTECTED]> wrote: > Dear all, > > To draw a lowess line on a plot was a piece of cake; to draw a loess > line, however, seems not that easy. Is the loess plotting implemented > at all in relation to the loess function, or do I have to look in > add-on packages? > > Thanks, > Marcin > > ______________________________________________ > 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. > -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O ______________________________________________ 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.