corrChord {corrViz} | R Documentation |
This function creates a chord plot of correlations between variables in a dataset.
corrChord(mat, threshold = 0, circle = FALSE)
mat |
A square correlation matrix to visualise. |
threshold |
A numeric value indicating the minimum absolute correlation value to display in the plot. |
circle |
A logical value indicating whether to use a circular layout (TRUE) or linear layout (FALSE), default is FALSE. |
When using a large amount of data, this plot can quickly become over
complicated. It is recommended to filter the correlations using the threshold
argument to simplify the visualisation.
A chord plot displaying correlations.
cm <- cor(mtcars)
corrChord(mat = cm,
threshold = 0.8)
corrChord(mat = cm,
threshold = 0.8,
circle = TRUE)