Skip to content
Prev 317538 / 398503 Next

Problems plotting and regression w.r.t. date data type on x axis

Hello Petr!

thanks a lot for your help. The plot command plots well, but the abline
returns without error and does nothing.
'data.frame':   4 obs. of  3 variables:
 $ date  : Factor w/ 4 levels "2009-01-1","2009-12-1",..: 1 2 3 4
 $ number: int  1673 2111 2487 4301
 $ date2 : POSIXlt, format: "2009-01-01" "2009-12-01" ...
Call:
lm(formula = tabelle$number ~ as.Date(tabelle$date))

Coefficients:
          (Intercept)  as.Date(tabelle$date)  
           -24046.326                  1.799
--
View this message in context: http://r.789695.n4.nabble.com/Problems-plotting-and-regression-w-r-t-date-data-type-on-x-axis-tp4658518p4658529.html
Sent from the R help mailing list archive at Nabble.com.