powered by
Generates a plot showing the probability density of a stationary model (left panel) and the data (right panel).
plot_sffa_fit(results, show_line = TRUE, ...)
ggplot; a plot showing:
ggplot
The likelihood function of the distribution plotted vertically on the left panel.
The data, connected with a line if show_line == TRUE, on the right panel.
show_line == TRUE
A fitted flood frequency model generated by fit_lmoments(), fit_mle() or fit_gmle().
fit_lmoments()
fit_mle()
fit_gmle()
If TRUE (default), draw a fitted line through the data.
TRUE
Optional named arguments: 'title', 'xlabel', and 'ylabel'.
data <- rnorm(n = 100, mean = 100, sd = 10) years <- seq(from = 1901, to = 2000) results <- fit_lmoments(data, "WEI") plot_sffa_fit(results)
Run the code above in your browser using DataLab