# Get an AMAX sample and plot the growth curve with the GEV distribution
am_203018 <- GetAM(203018)
EVPlot(am_203018$Flow, dist = "GEV")
# Now add a line (dotted and red) for the generalised logistic distribution
# First get the Lcv and Lskew using the L-moments function
pars <- as.numeric(LMoments(am_203018[, 2])[c(5, 6)])
EVPlotAdd(
Pars = pars, dist = "GenLog", Name = "GenLog",
xyleg = c(-5.2, 2.65), lty = 3
)
# Now add a line for the Gumbel distribution which is dark green and dashed
EVPlotAdd(
Pars = pars[1], dist = "Gumbel", Name = "Gumbel",
xyleg = c(-5.19, 2.5), lty = 3, col = "darkgreen"
)
# Now plot afresh and get another AMAX and add the points
EVPlot(am_203018$Flow, dist = "GEV")
am_27090 <- GetAM(27090)
EVPlotAdd(xyleg = c(-4.9, 2.65), pts = am_27090[, 2], Name = "27090")
Run the code above in your browser using DataLab