Description Usage Arguments Value
View source: R/colour_scales.R
Create 2 colour scale palette
Creates a list of colour names (RGB). Generates a scale between two colours. By default these are the shades of orange and blue used in the analysis function colour scheme.
1 | get_2colour_scale(n, colour1 = c(0, 69, 86), colour2 = c(255, 105, 0))
|
n |
the number of colours needed |
colour1 |
the first colour in the scale - a numeric vector representing red, green and blue (max 255) |
colour2 |
the last colour in the scale - numeric vector representing red, green and blue (max 255). |
vector of hexadecimal colours containing shades between the two selected colours
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.