hidden {seas} | R Documentation |
Return title and properties for seasonal graphs
Description
Return title, x- and y-axis labels for seasonal graphs. Also, draw the month grid.
Usage
.seasxlab(width, start.day)
.seasylab(var, long.name = NULL, units = NULL)
.seastitle(main = NULL, id = NULL, name = NULL,
orig = NULL, fun = NULL, range = NA)
.seasmonthgrid(width, days, start = 1, rep = 0, start.day = 1, month.label)
Arguments
orig |
original object name, which is used if no other name can
be found from |
var |
original variable name in |
width |
size of bin; see |
start.day |
the starting day of annum for the first bin; as
either a |
main |
main title of plot; overrides any other title, but appends
year range if |
long.name |
a long name for |
units |
units of |
id |
station ID, which is used to fetch a station name using
|
name |
a name, which is used for labels |
fun |
function, if applicable |
range |
year range; |
days |
also known as |
start |
the starting bin number |
rep |
the number of repeated bins |
month.label |
|
Details
These functions are intended for producing the graphics, and do not need to be used directly.
The month grid is drawn by .seasmonthgrid
, and can be
fine-tuned by setting some options in the R environment, found in
seas.month.grid
. This list
, for instance, has
len
to adjust the length of each month label, and col
for the colour of the lines. See SeasOpts
for all
available options, and instructions on how to change them.
The main and variable/unit label formating can also be customized by
setting other options, documented in SeasOpts
.
Value
.seasxlab
, .seasylab
and .seastitle
return a
character
label intended for plots.
Author(s)
Mike Toews
See Also
Examples
setSeasOpts()
.seasxlab(11, 1)
.seasxlab("mon", 1)
# Not starting on January 1st
.seasxlab(11, 120)
# Labelled according to month (and possibly day)
getOption("seas.label")$month
.seasxlab("mon", as.Date("2000-08-01"))
getOption("seas.label")$monthday
.seasxlab(365/20, as.Date("2000-08-15"))