[R] Crazy plots of time-series against dates
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Tue May 1 19:43:13 CEST 2001
"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 display
> the plot without first loading the chron library, the plot is OK, but the
> 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
mailing list