Description Usage Arguments Value
View source: R/scale_colour_oda_gradient.R
A which applies the CU Boulder ODA brand palette as a ggplot gradient
1 | scale_colour_oda_gradient(low = "black", mid = NA, high = "gold", ...)
|
low |
A string indicating the name of the color to use for low values of the gradient (defaults to black) |
high |
A string indicating the name of the color to use for high values of the gradient (defaults to gold) |
... |
Pass-through arguments for ggplot2::gradient or ggplot2::gradientn |
med |
An optional argument specifying a third color for the mid-range values of the gradient (defaults to NA). If not provided a two-color gradient will be returned |
A ggplot2 gradient
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.