wdunlap tibco.com
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
On Behalf
Of Law, Jason
Sent: Wednesday, October 16, 2013 5:04 PM
To: Charles Novaes de Santana; r-help@r-project.org
Subject: Re: [R] Plot time series data irregularly
Hi,
This may get you started.
testtime1 - factor(testtime,levels=testtime)
plot(as.numeric(testtime1),var,type=b,xlab=Time,ylab=Var,xaxt=n)
axis(1,at= as.numeric(testtime1), labels=levels(testtime1)) ## labels are not
spaced according to time interval
#Another idea would be:
testtime2 -
, testtime)), var)
Jason
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of Charles Novaes de Santana
Sent: Wednesday, October 16, 2013 2:58 PM
To: r-help@r-project.org
Subject: [R] Plot time series data irregularly hourly-spaced
Dear all
-help@r-project.org
Subject: Re: [R] Plot time series data irregularly hourly-spaced
You just need the date, otherwise how would it know what time comes first?
In
strptime(), a date is being assumed.
Try this:
testtime-
c(20:00:00,22:10:00,22:20:00,23:15:00,23:43:00,00:00:00,00:51:00,01
4 matches
Mail list logo