AC: Annual cycle

Description Usage Arguments Author(s) See Also Examples

Description

Plots the mean annual cycle making use of the information embedded in this systematic and foced variation.

Usage

1
AC(x, is = 1, plot=TRUE,...)

Arguments

x

a time series object

is

index - which series to plot

plot

true: plot the results

...

arguments passed on to plot

Author(s)

Rasmus.Benestad@met.no

See Also

PDF, timeseries

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x, is = 2, ...) 
{
    y <- as.monthly(as.station(x[, is]), FUN = "mean")
    plot(aggregate(y, month, FUN = "mean"), col = c("red", "blue", 
        "grey"), lwd = 3, errorbar = FALSE, main = attr(x, "longname")[is], 
        ylab = attr(x, "unit")[is], xlab = "month", new = FALSE, 
        ...)
    grid()
  }

brasmus/preciparea documentation built on May 7, 2019, 11:11 a.m.