rearrange | R Documentation |
Re-arrange a correlation data frame to group highly correlated variables closer together.
rearrange(x, method = "PC", absolute = TRUE)
x |
cor_df. See |
method |
String specifying the arrangement (clustering) method.
Clustering is achieved via |
absolute |
Boolean whether absolute values for the correlations should be used for clustering. |
cor_df. See correlate
.
x <- correlate(mtcars) rearrange(x) # Default settings rearrange(x, method = "HC") # Different seriation method rearrange(x, absolute = FALSE) # Not using absolute values for arranging
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.