Thank you Gabor. This is very helpful.
AA.
- Original Message
From: Gabor Grothendieck <[EMAIL PROTECTED]>
To: ahmad ajakh <[EMAIL PROTECTED]>
Cc: r-help@stat.math.ethz.ch
Sent: Wednesday, December 27, 2006 12:08:41 PM
Subject: Re: [R] plotting time series with zoo pckg
T
b = FALSE)
> jd <- time(z2)[seq(1, dim(z2)[[1]], 3)]
> axis(1,jd, as.character(jd),cex.axis = 0.8, tcl = -0.7, las = 2)
> #-----------End---
>
> - Original Message
> From: Gabor Grothendieck <[EMAIL PROTECTED]>
> To: a
aracter(jd),cex.axis = 0.8, tcl = -0.7, las = 2)
#---End---
- Original Message
From: Gabor Grothendieck <[EMAIL PROTECTED]>
To: ahmad ajakh <[EMAIL PROTECTED]>
Cc: r-help@stat.math.ethz.ch
Sent: Tuesday, December 26, 2006 11:17:44 PM
Subject: Re: [R] plotting time series
: Gabor Grothendieck <[EMAIL PROTECTED]>
> To: ahmad ajakh <[EMAIL PROTECTED]>
> Cc: r-help@stat.math.ethz.ch
> Sent: Tuesday, December 26, 2006 8:31:07 PM
> Subject: Re: [R] plotting time series with zoo pckg
>
> Try this:
>
>
> # test data
> library(zoo
question) and it worked! is there something that I am missing?
Thanks again.
AA.
- Original Message
From: Gabor Grothendieck <[EMAIL PROTECTED]>
To: ahmad ajakh <[EMAIL PROTECTED]>
Cc: r-help@stat.math.ethz.ch
Sent: Tuesday, December 26, 2006 8:31:07 PM
Subject: Re: [R] plotting
Try this:
# test data
library(zoo)
z <- structure(c(21, 34, 33, 41, 39, 38, 37, 28, 33, 40),
index = structure(c(8044, 8051, 8058, 8065, 8072, 8079, 8086,
8093, 8100, 8107), class = "Date"), class = "zoo")
z
# plot without X axis
plot(z, xaxt = "n")
# unlabelled tick at each point
axi
Hi all,
I am using the zoo package to plot time series. I have a problem with
formatting the axes.
my zoo object (z) looks like the following.
c1
1992-01-10 21
1992-01-17 34
1992-01-24 33
1992-01-31 41
1992-02-07 39
1992-02-14 3