get_colour_scale: Get a Brewer or Viridis colour scale.

View source: R/prepare_scales.R

get_colour_scaleR Documentation

Get a Brewer or Viridis colour scale.

Description

Get a Brewer or Viridis colour scale.

Usage

get_colour_scale(
  name,
  val_type,
  aes_type,
  limits = NULL,
  bins = NULL,
  leg_order = 1,
  title = ggplot2::waiver(),
  na_col = "grey50"
)

Arguments

name

Scale palette/option name.

val_type

Value type ('continuous' or 'discrete').

aes_type

Aesthetic type ('fill' or 'col').

limits

Limits for scale.

bins

Number of bins if binned scale.

leg_order

Order of legend.

title

Legend title.

na_col

Colour of NA cells.

Value

ggplot2 scale using Brewer or Viridis.


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