Learn R Programming

corrgrapher (version 1.0.4)

plot.corrgrapher: Visualize correlations in a corrgrapher object

Description

Visualize correlations between variables, using previously created corrgrapher object.

Usage

# S3 method for corrgrapher
plot(x, ...)

Arguments

x

a corrgrapher object. See corrgrapher.

...

other parameters, passed directly to visNetwork function (such as main, submain, width, height etc.)

Value

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.

See Also

corrgrapher

Examples

Run this code
# NOT RUN {
df <- as.data.frame(datasets::Seatbelts)[,1:7] # drop the binary target variable
cgr <- corrgrapher(df)
plot(cgr)
# }

Run the code above in your browser using DataLab