Description Usage Arguments Details See Also
plot_term_frequencies
plots time series of term shares for a selection
of terms in a faceted plot. Each term is displayed in a single subplot and
each time series is overlayed with a linear trendline.
1 2 3 4 | plot_term_frequencies(termsByDate, timeBinUnit = "week",
minTermTimeBins = 0.5, minTermOccurences = 10, topN = 25,
selectTerms = NULL, selectTermsBy = "most_frequent",
verboseLabels = FALSE, nCols = 5)
|
termsByDate |
a dataframe as returned by |
timeBinUnit |
a character sequence specifying the time period that
should be used as a bin unit when computing term frequencies. Valid values
are |
minTermTimeBins |
a double in the range |
minTermOccurences |
an integer specifying the minimum of total occurrences of a term to be included in the results; terms that do not meet this threshold will not be included in the returned results. |
topN |
the number of displayed top terms meeting the selection criteria
in |
selectTerms |
a character vector of term patterns, that terms are
matched to for selection. |
selectTermsBy |
the selection approach which determines the metric by which
|
verboseLabels |
a Boolean indicating if a single terms should be used as
labels for subplots or if multiple term instances (i.e. variations of the
term found in the original text source) should be used as labels. The
default is |
nCols |
the number of columns along which term subplots should be layed out. |
This function merges the computation of term frequencies
(term_frequencies
), creation of suitable labels
(terms_tokens_map
) and the selection of terms by
msicalleneous criteria (select_top_terms
) into one step.
Other visualizations: plot_topic_frequencies
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.