scale_fill_gmri: GMRI-ggplot2 Scale Fill Palettes

View source: R/gmri_palettes.R

scale_fill_gmriR Documentation

GMRI-ggplot2 Scale Fill Palettes

Description

GMRI-ggplot2 Scale Fill Palettes

Usage

scale_fill_gmri(palette = "main", discrete = TRUE, reverse = FALSE, ...)

Arguments

palette

Character name of palette in gmri_palettes

discrete

Boolean indicating whether color 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

Examples

#Fill by discrete variable with different palette + remove legend (guide)
#ggplot2::ggplot(mpg, ggplot2::aes(manufacturer, fill = manufacturer)) +
#  ggplot2::geom_bar() +
#  ggplot2::theme(axis.text.x = element_text(angle = 45, hjust = 1)) +
#  scale_fill_gmri(palette = "mixed", guide = "none")


gulfofmaine/gmRi documentation built on Jan. 26, 2025, 5:12 a.m.