topic_series | R Documentation |
Generate a data frame with topics over time (based on document metadata). Since it is frequently useful to look at time series of topics, this function provides a short-cut for generating a data frame in a format suitable for plotting from the information contained in a model.
topic_series(m, breaks = "years")
m |
|
breaks |
passed on to |
Topic weights are smoothed with the estimated hyperparameter β before summing and normalizing.
See the package vignette for an example of this function in use.
a data frame with three columns, topic, pubdate, weight
. The
weights are normalized to sum to 1 in each time period.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.