Skip to contents

Internal plotting function called by summarizeCountData. Selects an appropriate ggplot based on the number and type of predictors supplied.

Usage

plot_count_data(y, mf, pred_vars, pred_types)

Arguments

y

Numeric vector of non-negative integer counts (the response).

mf

A model frame returned by model.frame.

pred_vars

Character vector of predictor variable names to plot. If more than two names are supplied, only the first two are used and a warning is issued.

pred_types

Named character vector classifying each element of pred_vars as either "continuous" or "categorical".

Value

A ggplot object.

Details

See summarizeCountData for the full description of which plot type is produced for each predictor combination.