plot_pp: P-P Plot

View source: R/diagnostics.R

plot_ppR Documentation

P-P Plot

Description

P-P Plot

Usage

plot_pp(x, fits)

Arguments

x

numeric vector of sample data

fits

a list object produced from fit_univariate, fit_empirical, or fit_univariate_man

Value

ggplot of percentile-percentile comparison of theoretical distribution

Examples

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()

datareaver/fitur documentation built on June 18, 2022, 11:04 a.m.