| tm_cooc | R Documentation |
This function generates a word co-occurrence network plot, with options to
return a table. This function is used within meeting_tm_report().
tm_cooc(data, stopwords = NULL, seed = 100, return = "plot", lmult = 0.05)
data |
A Meeting Query dataset in the form of a data frame. |
stopwords |
A character vector OR a single-column data frame labelled
|
seed |
A numeric vector to set seed for random generation. |
return |
String specifying what to return. This must be one of the following strings:
See |
lmult |
A multiplier to adjust the line width in the output plot. Defaults to 0.05. |
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' and 'ggraph' object. A network plot.
"table": data frame. A summary table.
The function can be run with subject lines from mt_data, as per below.
mt_data %>% tm_cooc(lmult = 0.01)
Carlos Morales carlos.morales@microsoft.com
Other Text-mining:
meeting_tm_report(),
pairwise_count(),
tm_clean(),
tm_freq(),
tm_wordcloud()
# Demo using a subset of `mt_data`
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.