[R] Crazy plots of time-series against dates
mtaboga at tiscalinet.it
Tue May 1 20:47:09 CEST 2001
OK, it works. xlab and ylab had to be set properly.
If you want to see what actually goes on, try:
Marco Taboga (mtaboga at tiscalinet.it)
----- Original Message -----
From: "Peter Dalgaard BSA" <p.dalgaard at biostat.ku.dk>
To: "Marco Taboga" <mtaboga at tiscalinet.it>
Cc: "Thomas Lumley" <tlumley at u.washington.edu>; <r-help at stat.math.ethz.ch>
Sent: Tuesday, May 01, 2001 7:43 PM
Subject: Re: [R] Crazy plots of time-series against dates
> "Marco Taboga" <mtaboga at tiscalinet.it> writes:
> > Content-Type: text/plain; charset="iso-8859-1"
> > Content-Transfer-Encoding: 7Bit
> > I did what you suggested, but nothing changed. I noticed that, if I
> > the plot without first loading the chron library, the plot is OK, but
> > dates on the time axis are replaced by sequential numbers.
> > I send you an attachment with the zipped plot, so you can see it.
> > Thank you.
> > Marco Taboga (mtaboga at tiscalinet.it)
> Interesting effect...
> I don't know what the real cause is, but evidently it is the axis
> labels that are off (looking like what you get from applying deparse
> to a vector/chron object), so a quick fix would be to set xlab and
> ylab to sensible text strings. I.e.
> plot(a, b, type='l', xlab="a", ylab="b)
> Do you think you could cook up a small example (e.g. using simulated
> data) exhibiting the same behaviour?
> O__ ---- Peter Dalgaard Blegdamsvej 3
> c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
> (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
> ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help