This function creates a circular plot of correlations between variables in a dataset.

corrCircle(mat, threshold = 0, ticks = FALSE)

Arguments

mat

A square correlation matrix to visualise.

threshold

A numeric value indicating the minimum absolute correlation value to display in the plot.

ticks

A logical value indicating whether to display ticks (TRUE) or not (FALSE), default is FALSE.

Value

A circular chord plot object displaying the correlations between variables.

Details

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.

Examples

cm <- cor(mtcars)

corrCircle(mat = cm,
          threshold = 0.8)