create_gradient2_scale | R Documentation |
Create a gradient2 scale (diverging colour gradient) using nish colour scheme.
create_gradient2_scale(type = NULL, aes = c("colour", "fill"))
type |
A character denoting the gradient2 type. Allowed values are "pn1" and "pn2". |
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 diverging colour gradient scale when called.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.