Usage
seasonality(dates, values, data, drange = NULL, vrange = NULL, shift = 0, janline = TRUE, months = substr(month.abb, 1, 1), xlab = "Year", ylab = "Month", zlab = substitute(values), ylim = c(370, -3), yaxs = "i", main = "Seasonality", mar = c(3, 3, 4, 1), mgp = c(1.9, 0.7, 0), keeppar = TRUE, ...)
Arguments
dates
Dates in ascending order.
Can be charater strings or strptime
results,
as accepted (and coerced) by as.Date
data
Optional: data.frame with the column names as given by dates and values
drange
Optional date range (analogous to xlim),
can be a vector like dates
. DEFAULT: NULL
vrange
Optional value range (analogous to ylim),
can be a vector like values
. DEFAULT: NULL
shift
Number of days to move the year-break to.
E.g. shift=61 for German hydrological year (Nov to Oct). DEFAULT: 0
janline
Logical: Should horizontal line be plotted at
January 1st if shift!=0
? DEFAULT: TRUE
### @param nmax Number of annual maxima to be marked and returned. DEFAULT: 0
months
Labels for the months. DEFAULT: J,F,M,A,M,J,J,A,S,O,N,D
xlab, ylab
Labels for the axes. DEFAULT: Year, Month
ylim, yaxs
Parameters specifying y Axis appearance, see par
.
DEFAULT: c(366,1), "i" main
Graph title, offset to the left. DEFAULT: Seasonality
mar, mgp
Parameters specifying plot margin size and labels placement.
DEFAULT: c(3,3,4,1), c(2.2,0.7,0)
keeppar
Logical: Keep the margin parameters? If FALSE, they are reset
to the previous values. DEFAULT: TRUE
...
Further arguments passed to colPoints
like
pch, main, xaxs, but not Range (use vrange
)