ldaplot_alignment() plots the alignment of LDA topics across models.
Arguments
- lda_alignment
The output of
align_lda_topics().- show_product
Whether to show the product or transport alignment.
- ...
Arguments passed on to
alto::plot_alignmentx(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 weights encode? Defaults to 'path'. Other possible arguments are 'coherence', 'refinement', or 'topic'.
model_name_repair_fun(optional) How should names be repaired before plotting?
label_topics(optional, default =
FALSE) Alogicalspecifying if topics should be labeled with the"color_by"information.add_leaves(optional, default =
FALSE) Alogicalspecifying if the topic composition of leave-topics should be printed.leaves_text_size(optional, default =
10) specifies the font size of leaves annotations inptifadd_leavesisTRUE.n_features_in_leaves(optional, default = 3) specifies the maximum number of features that should be included in the leaves annotations if
add_leavesisTRUE.min_feature_prop(optional, default = 0.1) specifies the minimum proportion of a feature in a topic for that feature to be included in the leaves annotations if
add_leavesisTRUE.top_n_edges(optional,
integer, default =NULL) specifies the number of edges that should be drawn between the topics of subsequent models. Thetop_n_edgeswith the highest weights are drawn. IfNULL(default), all edges are drawn.
