[R] date
partha_bagchi/hgsi_at_hgsi@hgsi.com
partha_bagchi/hgsi_at_hgsi at hgsi.com
Mon Apr 26 19:03:27 CEST 1999
I use the date library as thus:
> library(date)
> x_c(14132:14150)
> y_c(1:length(x))
> plot(x, y, axes= FALSE)
> axis(2)
> axis(1, at= pretty(x), labels=
as.character(as.date(pretty(x))))
> box()
Take care though. pretty() can take you outside the limits of
the data and you may have to play with it.
From: "Geldenhuys Willie" <ECI at dwaf-hri.pwv.gov.za> AT INTERNET
on 04/26/99 03:28 PM
To: r-help at stat.math.ethz.ch AT INTERNET at cc
cc: (bcc: Partha Bagchi/Hgsi)
Subject: [R] date
-------------- next part --------------
I have read in the date, using chron, and plotted a time-series
of concentration vs date. How do display the date on the
x-axis?
"This universe never did make sense; I suspect it was built on
a government contract." -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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