get_gradient: Create single colour gradient

Description Usage Arguments Value

View source: R/colour_scales.R

Description

Creates a list of colours for plotting. The list contains n shades of the original colour, increasing in brightness.

Usage

1
get_gradient(n, colour = c(0, 69, 86))

Arguments

n

the number of colours needed

colour

the first colour of the gradient - numeric vector with three values representing red, blue and green (max 255)

Value

RGB colours


best-practice-and-impact/CARS2 documentation built on Dec. 19, 2021, 8:47 a.m.