Visualize correlations between variables, using previously created corrgrapher
object.
# S3 method for corrgrapher plot(x, ...)
x | a |
---|---|
... | other parameters, passed directly to |
A visNetwork
object; graph. On this graph, the edges are treated as springs.
The variables correlated strongly (positively or negatively) are close to each other,
and those not (or weakly) correlated - far from each other.
df <- as.data.frame(datasets::Seatbelts)[,1:7] # drop the binary target variable cgr <- corrgrapher(df) plot(cgr)