[R] plot/lm/abline

From: Mathias Hunskår Furevik <mathias.furevik_at_gmail.com>
Date: Thu 02 Jun 2005 - 23:19:12 EST


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:29:05 2005

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