I have a series of datasets, each containing pH measurements and
manufacturing dates, and each dataset pertains to a different manufactured
product. I'm trying to create a series of plots of pH measurements by
date, but the default X-axis labeling behavior is not giving adequate
results in this particular case, and I can't figure out how to persuade R
to come up with something more meaningful. Specifically, the datasets
generally span about 1.5 years, and only January 1 is given a tick mark and
label. Some datasets contain both Jan. 1 2000 and Jan. 1 2001, and others
just Jan. 1 2001, so I'm getting one or two tick marks. Generally every
month is represented in these datasets, and I would like to see a tick mark
every two or three months. I can't seem to find a graceful way to do this.
System info: Windows NT 4.0, 450 MHz Pentium II (I think), R version
1.3.0.
Here is a small subset of data which reproduces the undesired default
behavior on my system:
yields a plot with a single X-axis tick mark and label at Jan. 1, 2001, as I said. I dabbled with the "axis.POSIXct" function,
especially with the format option, but couldn't coerce it to plot more tick marks. For example,
axis.POSIXct(1, test.dat$man.date, "%m %d, %Y")
creates a tick mark and date label in the desired format, but only at Jan. 1, 2001. In other words, It controls what the label looks like,
but not the number and spacing of labeled tick marks.
Any ideas would be appreciated!
Jim Garrett
Becton Dickinson Diagnostic Systems
Baltimore, Maryland, USA
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._