See the example in plot.zoo labelled Fancy X Axis:
library(zoo)
example(plot.zoo)
?plot.zoo
On Wed, Jun 24, 2009 at 10:11 AM, Thomas Levine wrote:
> One last tiny problem: How do I add months to the scale? It currently just
> has years
> http://school.thomaslevine.org/mywall.png
>
> Thanks again
One last tiny problem: How do I add months to the scale? It currently just
has years
http://school.thomaslevine.org/mywall.png
Thanks again
Tom
On Sat, Jun 20, 2009 at 12:14 PM, Thomas Levine wrote:
> I wasn't really thinking that far ahead; plot tries to do something, so I
> figured I'd try th
If that is the situation then plot(tt) in your post could not have been
what you wanted in any case, e.g. plot(10:20)
On Sat, Jun 20, 2009 at 11:49 AM, Thomas Levine wrote:
> This produces the x-axis is the index, and the y-axis is time. It has all of
> the time information on the same axis, allow
This produces the x-axis is the index, and the y-axis is time. It has all of
the time information on the same axis, allowing me to plot cumulative
occurrences by time (my original plan) if the times are sorted, which they
should be.
I think I'll end up using some variant of plot(tt,seq_along(tt)),
Try this:
plot(seq_along(tt), tt)
On Sat, Jun 20, 2009 at 10:55 AM, Thomas Levine wrote:
> Here's what I get
>> head(tt)
> [1] "2008-02-20 03:09:51 EST" "2008-02-20 12:12:57 EST"
> [3] "2008-03-05 09:11:28 EST" "2008-03-05 17:59:40 EST"
> [5] "2008-03-09 09:00:09 EDT" "2008-03-29 15:57:16 EDT"
>
Here's what I get
> head(tt)
[1] "2008-02-20 03:09:51 EST" "2008-02-20 12:12:57 EST"
[3] "2008-03-05 09:11:28 EST" "2008-03-05 17:59:40 EST"
[5] "2008-03-09 09:00:09 EDT" "2008-03-29 15:57:16 EDT"
But I can't figure out how to plot this now. plot(tt) does not appear to be
univariate. I get the sam
Try this:
Lines <- "Sun, 14 Jun 2009 07:33:00 -0700
Sun, 14 Jun 2009 08:35:10 -0700
Sun, 14 Jun 2009 21:26:34 -0700
Mon, 15 Jun 2009 19:47:47 -0700
Wed, 17 Jun 2009 21:50:41 -0700"
# L <- readLines("myfile.txt")
L <- readLines(textConnection(Lines))
tt <- as.POSIXct(L, format = "%a, %d %b %Y %H:
I am analysing occurrences of a phenomenon by time, and each of these
timestamps taken from email headers represents one occurrence. (The last
number is the time zone.) I can easily change the format.
Sun, 14 Jun 2009 07:33:00 -0700
Sun, 14 Jun 2009 08:35:10 -0700
Sun, 14 Jun 2009 21:26:34 -0700
M
8 matches
Mail list logo