axis.POSIXct
that produces
results with less ambiguity in axis labels.
oce.axis.POSIXct(side, x, at, tformat, labels = TRUE, drawTimeRange = getOption("oceDrawTimeRange"), abbreviateTimeRange = FALSE, drawFrequency = FALSE, cex = par("cex"), cex.axis = par("cex.axis"), cex.main = par("cex.main"), mar = par("mar"), mgp = par("mgp"), main = "", debug = getOption("oceDebug"), ...)
axis.POSIXct
.axis.POSIXct
.axis.POSIXct
.format
for axis.POSIXct
for now, but
may eventually have new features for multiline labels, e.g. day on one line
and month on another.axis.POSIXct
.TRUE
to draw a time range on the
opposite side of the plot.TRUE
to abbreviate the second
number in the time range, e.g. dropping the year if it is the same in the
first number.TRUE
to show the frequency of sampling
in the datapar
("cex").par
("cex.axis").par
("cex.main").par(mar)
for axispar(mgp)
for axisaxis.POSIXct
.The user may set the format of axis numbers with the tformat
argument.
If this is not supplied, the format is set based on the time span of the axis:
"%S"
is supplemented with a new format e.g.
"%.2S"
, meaning to use two digits after the decimal.)
"%H:%M:%S"
.
"%b %d"
(e.g. Jul 15) and, again, the tick marks are set up for several
subcategories.
"%Y"
, i.e. the year
is displayed with 4 digits.
It should be noted that this scheme differs from the R approach in several ways. First, R writes day names for some time ranges, in a convention that is seldom seen in the literature. Second, R will write nn:mm for both HH:MM and MM:SS, an ambiguity that might confuse readers. Third, the use of both large and small tick marks is not something that R does.
Bear in mind that tformat
may be set to alter the number format, but
that the tick mark scheme cannot (presently) be controlled.
oce.plot.ts
.