stacked_bar_by_class: Visualization of each latent class in a stacked bar plot...

Description Usage Arguments Value Examples

View source: R/profile_plot.R

Description

Visualization of each latent class in a stacked bar plot fashion (facet by classes)

Usage

1
stacked_bar_by_class(model, color_palette = "Greys")

Arguments

model

This parameter expects to be the fitted latent class model object

color_palette

The color palette for the plot; default at "Greys," you could change to any palette from brewer.pal from RColorBrewer package

Value

The stacked bar plot object

Examples

1
2
3
4
# Find out the best model according to the BIC criterion
best_model = find_best_fit(data, form, "bic")
# Pass the model object into the stacked_bar_plot function
stacked_bar_plot(best_model) # The function will return the plot object

DavidykZhao/LCA_plotter documentation built on Dec. 11, 2019, 8:38 p.m.