R/diagnostics.R
plot_pp.Rd
P-P Plot
plot_pp(x, fits)
numeric vector of sample data
a list object produced from fit_univariate, fit_empirical, or fit_univariate_man
ggplot of percentile-percentile comparison of theoretical distribution
library(ggplot2) set.seed(37) x <- rgamma(10000, 5) dists <- c('gamma', 'lnorm', 'weibull') fits <- lapply(dists, fit_univariate, x = x) plot_pp(x, fits) + theme_bw()