AMplot | R Documentation |
Provides a barplot for an annual maximum sample
AMplot(x, ylab = "Discharge (m3/s)", xlab = "Hydrological year", main = NULL)
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. |
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.
A barplot of the annual maximum sample
Anthony Hammond
#Get an AMAX sample and plot
AMplot(GetAM(58002))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.