Generate a wordcloud with the meeting query.
This is a sub-function that feeds into
tm_wordcloud( data, stopwords = NULL, seed = 100, keep = 100, return = "plot", ... )
A Meeting Query dataset in the form of a data frame.
A character vector OR a single-column data frame labelled
'word' containing custom stopwords to remove.
A numeric vector to set seed for random generation.
A numeric vector specifying maximum number of words to keep.
String specifying what to return. This must be one of the following strings:
Value for more information.
Additional parameters to be passed to
A different output is returned depending on the value passed to the
"plot": 'ggplot' object containing a word cloud.
"table": data frame returning the data used to generate the word cloud.
Uses the 'ggwordcloud' package for the underlying implementation, thus
returning a 'ggplot' object. Additional layers can be added onto the plot
using a ggplot
The recommendation is not to return over 100 words in a word cloud.
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
tm_wordcloud(mt_data, keep = 30) #> Some words could not fit on page. They have been removed. # Removing stopwords tm_wordcloud(mt_data, keep = 30, stopwords = c("weekly", "update")) #> Some words could not fit on page. They have been removed.