cor_heatmap: Function to generate ggplot correlation heatmap

View source: R/cor_heatmap.R

cor_heatmapR Documentation

Function to generate ggplot correlation heatmap

Description

Function to generate ggplot correlation heatmap

Usage

cor_heatmap(
  df,
  cormat = NULL,
  alphaSort = TRUE,
  base_size = 14,
  tileTextSize = 3.8,
  title = NULL,
  viridis = NULL
)

Arguments

df

data.frame to plot

cormat

Alternatively, pass a correlation matrix directory (not df)

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

Examples

  library(dplyr)
  data(iris)

  cor_heatmap(iris) #Species is not numeric and will be dropped automatically


PennStateDEPENdLab/dependlab documentation built on April 10, 2024, 5:15 p.m.