Plot a Word Co-occurrence Network
Source:R/text_mining_functions.R
plot_word_co_occurrence_network.Rd
Visualize the co-occurrence relationships between terms in the corpus based on pairwise counts.
Examples
if (interactive()) {
df <- TextAnalysisR::SpecialEduTech
united_tbl <- TextAnalysisR::unite_text_cols(df, listed_vars = c("title", "keyword", "abstract"))
tokens <- TextAnalysisR::preprocess_texts(united_tbl, text_field = "united_texts")
dfm_object <- quanteda::dfm(tokens)
TextAnalysisR::plot_word_co_occurrence_network(
dfm_object,
co_occur_n = 200,
height = 900,
width = 800)
}