plot_fitcmp {countfitteR} | R Documentation |
plot_fitcmp
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
plot_fitcmp(fitcmp)
Arguments
fitcmp |
You need to input data frame that is created by compare_fit function. |
Examples
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)
[Package countfitteR version 1.4 Index]