create_gradient_scale | R Documentation |
Create a gradient scale using nish colour scheme.
create_gradient_scale( col = c("blue", "grey", "pink"), aes = c("colour", "fill") )
col |
A character string of gradient nuance. Allowed values are "blue", "grey" and "pink" (partial matching). |
aes |
A character aesthetic. Allowed values are "colour" and "fill" (partial matching). |
If options ggplot2.continuous.colour and ggplot2.continuous.fill are unset, gradient is used instead of continuous.
A function that returns a two colour gradient scale when called.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.