Learn R Programming

wq (version 0.3-3)

plotTsAnom: Anomaly plot of time series

Description

The series is illustrated by vertical lines extending from individual data values to the long-term mean. The axes are not scaled in any way.

Usage

plotTsAnom(x, xlab, ylab)

Arguments

Value

A plot and corresponding object of class ggplot.

Rdversion

1.1

Examples

Run this code
### Spring bloom size
bloom.mon <-  tsSub(sfbayChla[, 's27'], 3:5)
bloom = aggregate(bloom.mon, 1, mean)
plotTsAnom(bloom, ylab = 'Chl-a')

Run the code above in your browser using DataLab