Skip to contents

Plot state frequencies as a mosaic between two groups

Usage

# S3 method for class 'group_tna'
plot_mosaic(x, label, digits = 1, ...)

Arguments

x

A group_tna object.

label

An optional character string that can be provided to specify the grouping factor name if x was not constructed using a column name of the original data.

digits

An integer that determines the number of digits to use for the chi-square test statistic and the p-value in the plot.

...

Ignored.

Value

A ggplot object.

Examples

model <- group_model(engagement_mmm)
plot_mosaic(model)