create_gradient2_scale: Create a function that returns a gradient2 scale

View source: R/nish.R

create_gradient2_scaleR Documentation

Create a function that returns a gradient2 scale

Description

Create a gradient2 scale (diverging colour gradient) using nish colour scheme.

Usage

create_gradient2_scale(type = NULL, aes = c("colour", "fill"))

Arguments

type

A character denoting the gradient2 type. Allowed values are "pn1" and "pn2".

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 diverging colour gradient scale when called.


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