Description Usage Arguments Value Author(s) Examples
View source: R/scale_fill_EJ.R
Load ggplot2 scale for colour aesthetic options based on EJ colours
1 | scale_fill_EJ(palette = "main", discrete = TRUE, reverse = FALSE, ...)
|
palette |
Character name of palette in EJ_palettes |
discrete |
Boolean indicating whether the discrete variable used |
reverse |
Boolean indicating whether the palette should be reversed |
... |
Additional arguments to pass to discrete_scale() or scale_color_gradientn() |
vector() of selected colours based on palette argument
Eugene Joh, MPH ejoh@bu.edu
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.