cor_heatmap | R Documentation |
Function to generate ggplot correlation heatmap
cor_heatmap(
df,
cormat = NULL,
alphaSort = TRUE,
base_size = 14,
tileTextSize = 3.8,
title = NULL,
viridis = NULL
)
df |
data.frame to plot |
cormat |
Alternatively, pass a correlation matrix directory (not |
alphaSort |
Whether to sort variables in alphabetic order |
base_size |
The base_size argument to the ggplot theme, controlling font sizes |
tileTextSize |
The size of text inside the cells of the correlation matrix |
title |
optional title added to ggplot |
library(dplyr)
data(iris)
cor_heatmap(iris) #Species is not numeric and will be dropped automatically
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.