View source: R/jecs_colour_fill.R
scale_fill_jecs | R Documentation |
Fill scale constructor for Jecs colours
scale_fill_jecs(palette = "jecs", discrete = TRUE, reverse = FALSE, ...)
palette |
Character name of palette in jecs_palettes |
discrete |
Boolean indicating whether colour aesthetic is discrete or not |
reverse |
Boolean indicating whether the palette should be reversed |
... |
Additional arguments passed to discrete_scale() or scale_fill_gradientn(), used respectively when discrete is TRUE or FALSE |
## Not run:
library(ggplot2)
# Fill by discrete variable with different palette + remove legend (guide)
ggplot(mpg, aes(manufacturer, fill = manufacturer)) +
geom_bar() +
theme(axis.text.x = element_text(angle = 45, hjust = 1)) +
scale_fill_jecs(palette = 'jecs', guide = 'none')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.