create_gradientn_scale: Create a function that returns a gradientn scale

View source: R/nish.R

create_gradientn_scaleR Documentation

Create a function that returns a gradientn scale

Description

Create a gradientn scale using nish colour scheme.

Usage

create_gradientn_scale(aes = c("colour", "fill"))

Arguments

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 gradientn scale when called. Defaults to use the following colours, nish_colours[c(7, 5, 3:1)].


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