[R] problems with abline in a time line scatterplot
carpaij at bluemail.ch
Thu Dec 23 00:14:10 CET 2010
i'm stuck with the following problem:
i want to add a trend line to a scatterplot. the x axis is a time line.
well it doesnt work, it seems that the function abline is not able
to handle the fact, that i used the column Date as a factor.
this is the script:
this warning message shows up (last row translated from german):
1: In model.matrix.default(mt, mf, contrasts) :
variable 'Date' converted to a factor
2: In abline(lm(DO ~ Date), col = "red") :
use only the first two of 54 regression coefficients
is abline not the right function, or is there a possibiliy to solve it with
the way i started it?
thank you for any guidance!
View this message in context: http://r.789695.n4.nabble.com/problems-with-abline-in-a-time-line-scatterplot-tp3161401p3161401.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help