scale_fill_rub | R Documentation |
Fill scale constructor for RUB colors
scale_fill_rub(palette = "discrete", discrete = TRUE, reverse = FALSE, ...)
palette |
Character name of palette in RUB_palettes |
discrete |
Boolean indicating whether color aesthetic is discrete or not |
reverse |
Boolean indicating whether the palette should be reversed |
... |
Additional arguments passed to
|
ggplot2::ggplot( data = mtcars, ggplot2::aes( x = as.factor(gear), fill = as.factor(vs) ) ) + ggplot2::geom_bar() + scale_fill_rub( palette = "discrete_2" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.