[R] plot/lm/abline

From: Mikkel Grum <mi2kelgrum_at_yahoo.com>
Date: Thu 02 Jun 2005 - 23:40:09 EST


Hi Mathias,

Try

abline(lm(z2 ~ z1))

Mikkel

......................................

Hi,

when I run

> plot.default(z1, z2, xlab = "x", ylab = "y", main =
"xxxx", pch = "+")
> abline(lm(z1 ~ z2))

then the plot is plotted perfectly (scatterplot), however, the lm()
function doesnt appear on the plot. What could be wrong?

(Yesterday it worked perfectly, with the lm() line.)

Running R 2 on OS X.

Mathias Hunskår Furevik
Norway



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jun 02 23:59:37 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:21 EST