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

2013-02-14 Thread Kategoricus
Hello, probably a newbie question, but i didnt find any information on plotting/regressing w.r.t. a date data type. My trials were unfruitful. Can anyone help ? Thanks in advance! Here is my interaction with R: tabelle date number date2 1 2009-01-1 1673 2009-01-01 2 2009-12-1 2111 2009-12-01

Re: [R] Problems plotting and regression w.r.t. date data type on x axis

2013-02-14 Thread PIKAL Petr
, February 14, 2013 10:10 AM To: r-help@r-project.org Subject: [R] Problems plotting and regression w.r.t. date data type on x axis Hello, probably a newbie question, but i didnt find any information on plotting/regressing w.r.t. a date data type. My trials were unfruitful. Can anyone help

Re: [R] Problems plotting and regression w.r.t. date data type on x axis

2013-02-14 Thread David Winsemius
On Feb 14, 2013, at 1:10 AM, Kategoricus wrote: Hello, probably a newbie question, but i didnt find any information on plotting/regressing w.r.t. a date data type. My trials were unfruitful. Can anyone help ? Thanks in advance! Here is my interaction with R: tabelle date number date2

Re: [R] Problems plotting and regression w.r.t. date data type on x axis

2013-02-14 Thread Kategoricus
Hello Petr! thanks a lot for your help. The plot command plots well, but the abline returns without error and does nothing. str(tabelle) '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,

Re: [R] Problems plotting and regression w.r.t. date data type on x axis

2013-02-14 Thread Kategoricus
as.POSIXct() works fine (finally!) Thanks a lot DavidPetr for your help! -- View this message in context: http://r.789695.n4.nabble.com/Problems-plotting-and-regression-w-r-t-date-data-type-on-x-axis-tp4658518p4658537.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Problems plotting and regression w.r.t. date data type on x axis

2013-02-14 Thread PIKAL Petr
Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Kategoricus Sent: Thursday, February 14, 2013 12:25 PM To: r-help@r-project.org Subject: Re: [R] Problems plotting and regression w.r.t. date data type on x axis Hello