default_col_scale_corr: Get a default colour scale for correlation heatmaps.

View source: R/prepare_scales.R

default_col_scale_corrR Documentation

Get a default colour scale for correlation heatmaps.

Description

Get a default colour scale for correlation heatmaps.

Usage

default_col_scale_corr(
  aes_type,
  bins = NULL,
  limits = c(-1, 1),
  high = "sienna2",
  mid = "white",
  low = "skyblue2",
  midpoint = 0,
  na_col = "grey50",
  leg_order = 1,
  title = ggplot2::waiver()
)

Arguments

aes_type

Type of aesthetic ('fill', 'col', or 'size').

bins

Number of bins (for fill and colour scales).

limits

Scale limits (fill and colour).

high

Colours at higher end of fill or colour scale.

mid

Colours at middle point of fill or colour scale.

low

Colours at lower end of fill or colour scale.

midpoint

Middle point of colour scale.

na_col

Colour of NAs.

leg_order

Order of legend.

title

Title of legend.

Value

ggplot2 scale for correlation heatmap.


ggcorrheatmap documentation built on Aug. 25, 2025, 1:11 a.m.