plot_fitcmp: plot_fitcmp

Description Usage Arguments Examples

View source: R/compare_fit.R

Description

Compare empirical distribution of counts with the distribution defined by the model fitted to counts. The bar charts represent theoretical counts depending on the chosen distribution. Red dots describe the real number of counts.

Usage

1
plot_fitcmp(fitcmp)

Arguments

fitcmp

You need to input data frame that is created by compare_fit function.

Examples

1
2
3
df <- data.frame(poisson = rpois(25, 0.3), binomial = rbinom(25, 1, 0.8))
fitcmp <- compare_fit(df, fitlist = fit_counts(df, model = "all"))
plot_fitcmp(fitcmp)

countfitteR documentation built on Oct. 23, 2020, 5:11 p.m.