year_axis {aion} | R Documentation |
Time Series Plotting Functions
Description
Time Series Plotting Functions
Usage
year_axis(
side,
at = NULL,
format = c("a", "ka", "Ma", "Ga"),
labels = TRUE,
calendar = getOption("aion.last_calendar"),
current_calendar = getOption("aion.last_calendar"),
...
)
Arguments
side |
An |
at |
A |
format |
A |
labels |
A |
calendar |
A |
current_calendar |
A |
... |
Further parameters to be passed to |
Value
year_axis()
is called it for its side-effects.
Author(s)
N. Frerebeau
See Also
Other plotting tools:
image()
,
plot()
Examples
## Create a time-series of 300 observations
## Sampled every two years starting from 2000 BP
X <- series(
object = rnorm(300),
time = seq(2000, by = -2, length.out = 300),
calendar = BP()
)
## Axis
plot(X, axes = FALSE, calendar = BP()) # Remove axes
year_axis(side = 1) # Same calendar as last plot
year_axis(side = 3, calendar = CE()) # Specific calendar
mtext(format(CE()), side = 3, line = 3)
## Grid
plot(X, panel.first = graphics::grid())