Learn R Programming

ggcorrheatmap (version 0.1.2)

get_colour_scale: 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"
)

Value

ggplot2 scale using Brewer or Viridis.

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.