network.cor {MadanTextNetwork} | R Documentation |
Create and Plot a Correlation Network
Description
This function creates a correlation network based on specified terms and a threshold, and optionally plots it.
Usage
network.cor(dt, Terms, threshold = 0.4, pl = TRUE)
Arguments
dt |
A document-term matrix. |
Terms |
A vector of terms to check for correlation. |
threshold |
A numeric threshold for correlation. |
pl |
A logical value to plot the network or not. |
Value
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.
[Package MadanTextNetwork version 0.1.0 Index]