Learn R Programming

tna (version 1.0.0)

plot_mosaic.group_tna: Plot State Frequencies as a Mosaic Between Two Groups

Description

Plot State Frequencies as a Mosaic Between Two Groups

Usage

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

Value

A ggplot object.

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.

See Also

Basic functions build_model(), hist.group_tna(), hist.tna(), plot.group_tna(), plot.tna(), plot_frequencies(), plot_frequencies.group_tna(), plot_mosaic(), plot_mosaic.tna_data(), print.group_tna(), print.summary.group_tna(), print.summary.tna(), print.tna(), summary.group_tna(), summary.tna(), tna-package

Examples

Run this code
model <- group_model(engagement_mmm)
plot_mosaic(model)

Run the code above in your browser using DataLab