Description Usage Arguments Value Examples
Visualization of each latent class in a stacked bar plot fashion (facet by classes)
1 | stacked_bar_by_class(model, color_palette = "Greys")
|
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 |
The stacked bar plot object
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.