topic_report | R Documentation |
This function is intended for a quick survey of a topic model. It generates a
folder of image files, one for each topic. Each file has two plots, the plot
of the most heavily-weighted words in the topic and the plot of the topic's
relative weight in the corpus over time. The plots are saved to
output_dir/<NNN>.png
. If you have more than 1000 topics, other parts
of this package will probably break too.
topic_report( m, output_dir = "topic_report", topics = 1:n_topics(m), breaks = "years", w = 1200, h = 800 )
m |
|
output_dir |
directory to save plots to |
breaks |
time intervals by which to slice document-topic distributions
for the box plots: passed on to |
w |
PNG width (pixels) |
h |
PNG height (pixels) |
topic |
topics to generate plots for (by default, all) |
plot_top_words
, plot_series
,
export_browser_data
and the
dfr-browser web-browser-based
topic model explorer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.