Skip to content

Instantly share code, notes, and snippets.

@okanbulut
Created March 12, 2021 16:21
Show Gist options
  • Save okanbulut/4f03810817452160bde39dd941347fe9 to your computer and use it in GitHub Desktop.
Save okanbulut/4f03810817452160bde39dd941347fe9 to your computer and use it in GitHub Desktop.
# Activate the corrplot package
library("corrplot")
# Correlation matrix plot
corrplot(cormat, # correlation matrix
order = "hclust", # hierarchical clustering of correlations
addrect = 2) # number of rectangles to draw around clusters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment