plot_topic_scaled: Plot topics on the plane

plot_topic_scaledR Documentation

Plot topics on the plane

Description

This plot gives a heuristic sense of how "close" topics are to one another. Use in conjunction with topic_scaled_2d or your own favorite dimensionality-reduction technique.

Usage

plot_topic_scaled(coords, labels = 1:nrow(coords))

Arguments

coords

two-column matrix of coordinates, with one row for each topic

labels

topic labels to appear on the plot (just numbers are used by default)

Value

A ggplot object.

See Also

topic_scaled_2d, cmdscale

Examples

## Not run: 
topic_scaled_2d(m) %>% plot_topic_scaled()

## End(Not run)


agoldst/dfrtopics documentation built on July 15, 2022, 4:13 p.m.