| tm_freq | R Documentation |
Generate a circular bar plot with frequency of words / ngrams.
This function is used within meeting_tm_report().
tm_freq(data, token = "words", stopwords = NULL, keep = 100, return = "plot")
data |
A Meeting Query dataset in the form of a data frame. |
token |
A character vector accepting either |
stopwords |
A character vector OR a single-column data frame labelled
|
keep |
A numeric vector specifying maximum number of words to keep. |
return |
String specifying what to return. This must be one of the following strings:
See |
This function uses tm_clean() as the underlying data wrangling function.
There is an option to remove stopwords by passing a data frame into the
stopwords argument.
A different output is returned depending on the value passed to the return
argument:
"plot": 'ggplot' object. A circular bar plot.
"table": data frame. A summary table.
Other Text-mining:
meeting_tm_report(),
pairwise_count(),
tm_clean(),
tm_cooc(),
tm_wordcloud()
# circular network plot with words
tm_freq(mt_data, token = "words")
# circular network plot with ngrams
tm_freq(mt_data, token = "ngrams")
# summary table of text frequency
tm_freq(mt_data, token = "words", return = "table")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.