Learn R Programming

tna (version 0.4.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

Cluster-related functions bootstrap(), centralities(), cliques(), communities(), deprune(), estimate_cs(), group_model(), hist.group_tna(), mmm_stats(), plot.group_tna(), plot.group_tna_centralities(), plot.group_tna_cliques(), plot.group_tna_communities(), plot.group_tna_stability(), plot_compare.group_tna(), plot_mosaic.tna_data(), print.group_tna(), print.group_tna_bootstrap(), print.group_tna_centralities(), print.group_tna_cliques(), print.group_tna_communities(), print.group_tna_stability(), print.summary.group_tna(), print.summary.group_tna_bootstrap(), prune(), pruning_details(), rename_groups(), reprune(), summary.group_tna(), summary.group_tna_bootstrap()

Examples

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

Run the code above in your browser using DataLab