AMplot: Plot of the annual maximum sample
Description
Provides a barplot for an annual maximum sample
Usage
AMplot(x, ylab = "Discharge (m3/s)", xlab = "Hydrological year", main = NULL)
Value
A barplot of the annual maximum sample
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 can be applied which is then used for the default plot title.
- ylab
Label for the y axis (character string).
- xlab
Label for the x axis (character string).
- main
Title for the plot (character string). The default is 'Annual maximum sample:', where : is followed by an ID number if this is included in a third column of the dataframe x.
Details
When used with a GetAM object or any data.frame with dates/POSIXct in the first column, the date-times are daily or sub-daily. Therefore, although it's an annual maximum (AM) sequence, some bars may 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