frequency_plot: Plot a frequency chart

View source: R/renewal_tools.R

frequency_plotR Documentation

Plot a frequency chart

Description

Plot a frequency chart to compare actual and predicted values.

Usage

frequency_plot(count_labels, actual, pred, colours)

Arguments

count_labels

character, labels to be used.

actual

numeric, the observed probabilities for the different count specified in count_labels.

pred

data.frame of predicted values. Should have the same number of rows as actual and one column per model. The columns' names will be used as labels for the different models.

colours

character vector of colour codes with length ncol(pred) + 2.

Details

In order to compare actual and fitted values, a barchart plot is created. It is the user's responsibility to provide the count, observed and fitted values.


GeoBosh/Countr documentation built on Jan. 26, 2024, 12:16 p.m.