Skip to contents

Correlation plot

Usage

cor_heat(
  d,
  test_names = colnames(d),
  margins = 0.55,
  text_size = 4,
  dendrograms = TRUE,
  palette_col = c("firebrick", "white", "royalblue"),
  x_label_angle = 90,
  reorder_vars = TRUE,
  heat.lim = c(-1, 1),
  heat.pal.values = seq(0, 1, 1/(length(palette_col) - 1)),
  ...
)

Arguments

d

Data or correlation matrix

test_names

Vector of names of variables

margins

Width of margins for labels

text_size

Size of text

dendrograms

If TRUE, add dendrograms

palette_col

A vector of three colors for heatmap

x_label_angle

Angle of x-axis label

reorder_vars

If TRUE, reorder variables based on cluster analysis

heat.lim

Vector of the lower and upper bounds on heat map

heat.pal.values

Vector of values of where on the scale each color in palette_col falls. Defaults to even spacing.

...

Additional parameters passed to superheat::superheat