create_gradient_scale: Create a function that returns a gradient scale

View source: R/nish.R

create_gradient_scaleR Documentation

Create a function that returns a gradient scale

Description

Create a gradient scale using nish colour scheme.

Usage

create_gradient_scale(
  col = c("blue", "grey", "pink"),
  aes = c("colour", "fill")
)

Arguments

col

A character string of gradient nuance. Allowed values are "blue", "grey" and "pink" (partial matching).

aes

A character aesthetic. Allowed values are "colour" and "fill" (partial matching).

Details

If options ggplot2.continuous.colour and ggplot2.continuous.fill are unset, gradient is used instead of continuous.

Value

A function that returns a two colour gradient scale when called.


rrunner/nish documentation built on Aug. 9, 2022, 6:53 p.m.