plot_hLDA_gammas: Visualizes Sample (Document) Composition of a Fitted hLDA...

View source: R/plot_hlda_gammas.R

plot_hLDA_gammasR Documentation

Visualizes Sample (Document) Composition of a Fitted hLDA Model

Description

Visualizes Sample (Document) Composition of a Fitted hLDA Model

Usage

plot_hLDA_gammas(hLDA_model, color_by = "path", print_legend = FALSE)

Arguments

hLDA_model

(required, hLDA.model) object returned by hLDA.

color_by

(optional, character, default = "path") specifies the variable that should be used for coloring the visualization.

print_legend

(optional, logical, default = FALSE) whether a legend should be printed to the console.

Value

A ggplot2 object describing the sample composition.

See Also

plot_hLDA

Examples

x <- matrix(sample(0:100, 1000, replace = TRUE), 20, 50)
m <- hLDA(x, depth = 3)
plot_hLDA_gammas(m)

lasy/hLDA documentation built on June 15, 2024, midnight