Learn R Programming

UKFE (version 0.3.5)

AMplot: Plot of the annual maximum sample

Description

Provides two plots. First, a histogram of the sample, second, a barplot

Usage

AMplot(x)

Value

a histogram of the AMAX sample and a barplot

Arguments

x

a data.frame with at least two columns. The first a date column and the second the annual maximum (AM) sequence. A third column with the station id is necessary for inclusion of the id in the plot title. An AM object derived from the GetAM or ImportAM functions.

Author

Anthony Hammond

Details

When used with a GetAM object or any data.frame with dates in the first column, the barplot is daily. Therefore, although it's an annual maximum (AM) sequence, some bars will be closer together depending on the number of days between them.

Examples

Run this code
#Get an AMAX sample and plot
AMplot(GetAM(58002))

Run the code above in your browser using DataLab