plot_fit_dist {EnviroPRA} | R Documentation |
A function to help assessing the distribution that best fit a data vector
plot_fit_dist(x, dist)
x |
A numeric vector of length at least one containing only finite values (values must be >= 0) |
dist |
Character vector indicating the distribution to be ploted:"norm", "lnorm", "geom", "exp", "pois", "cauchy", "logis", "weibull" |
Returns: Empirical and theoretical density plots, Empirical and theoretical CDFs, Q-Q plot, P-P plot
F. Barrio-Parra
plotdist from Library (fitdstrplus)
set.seed(123) a <- rnorm(n = 100, mean = 10, sd = 1) plot_fit_dist(a, "norm")