Description Usage Arguments Value Examples
View source: R/pal-sage-gradient.R
Used for both continuous and binned scales, this function creates a gradient of colors from the given high and low hex codes (or, by default, from the "200" to "800" values for a chosen color option).
1 | sage_gradient_pal(option = "royal", low = NULL, high = NULL)
|
option |
One of the Sage colors. See |
low |
Optional starting value (if |
high |
Optional ending value (if |
A function that can be called on values between 0 and 1 to return the hex color of the gradient at that point in the range.
1 2 3 4 5 6 7 | sage_gradient_pal()(1)
sage_gradient_pal()(0.5)
sage_gradient_pal(
option = "powder",
low = sage_colors[["powder"]][["300"]],
high = sage_colors[["powder"]][["700"]]
)(1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.