extract_gradient: Extract gradient of n colours as hex codes based on DfT...

View source: R/extractGradient.R

extract_gradientR Documentation

Extract gradient of n colours as hex codes based on DfT palettes

Description

Function to extract a gradient of colours as hex codes

Usage

extract_gradient(palette, n = 5)

Arguments

palette

Gradient palette name as a string, provides the start and end colours of the gradient.

n

Number of colours required in created gradient, as an integer. Defaults to 5.


department-for-transport/dftplotr documentation built on April 3, 2024, 3:55 p.m.