| plot_series | R Documentation |
Plot time series of topics as bars (faceted for multiple topics).
plot_series( series, group = "topic", date = "pubdate", weight = "weight", labels = unique(series[[group]]) )
series |
three-column data frame, as from |
group |
name of column in |
date |
name of column in |
weight |
name of column in |
labels |
character vector to label groups by (values of
|
This is a convenience function for quickly visualizing output from
topic_series. It does not offer fine-grained control over the
plot: for that, I recommend making plots yourself from the data frame.
A ggplot object.
topic_series to generate the series
## Not run:
# slightly more informative labels on a faceted plot
topic_series(m) %>%
plot_series(labels=topic_labels(m, 4))
# only two topics
topic_series(m) %>%
filter(topic %in% c(5, 10)) %>%
plot_series()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.