plot-alignment-missing-method: Plot Method for Alignment Class

plot,alignment,missing-methodR Documentation

Plot Method for Alignment Class

Description

Plot Method for Alignment Class

Usage

## S4 method for signature 'alignment,missing'
plot(
  x,
  rect_gap = 0.2,
  color_by = "path",
  model_name_repair_fun = paste0,
  label_topics = FALSE,
  add_leaves = FALSE,
  leaves_text_size = 10,
  n_features_in_leaves = 3,
  min_feature_prop = 0.1,
  top_n_edges = NULL
)

Arguments

x

(required) An alignment class object resulting from align_topics.

rect_gap

(optional) A float describing how much vertical space to put between topics within the same model. The units correspond to topic masses. Defaults to 0.2.

color_by

(optional) What should the color of topics and paths encode? Defaults to 'path'. Other possible arguments are 'coherence', 'refinement', or 'topic'.

model_name_repair_fun

How should names be repaired before plotting?

Value

A ggplot2 object describing the alignment weights across models.

See Also

align_topics

plot_alignment


lasy/alto documentation built on June 23, 2024, 6:45 a.m.