This function creates a correlation network based on specified terms and a threshold, and optionally plots it.
network.cor(dt, Terms, threshold = 0.4, pl = TRUE)If 'pl' is TRUE, a plot of the correlation network is displayed, highlighting the strength of associations between terms. If 'pl' is FALSE, a data frame with correlation pairs and their corresponding weights is returned.
A document-term matrix.
A vector of terms to check for correlation.
A numeric threshold for correlation.
A logical value to plot the network or not.