polyomics_scale_fill: Fill scale constructor for Polyomics colors

Description Usage Arguments Examples

View source: R/polyomics_scale_fill.R

Description

Fill scale constructor for Polyomics colors

Usage

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

Arguments

palette

Character name of palette in polyomics_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

1
2
3
4
ggplot(mpg, aes(manufacturer, fill = manufacturer)) +
geom_bar() +
  theme(axis.text.x = element_text(angle = 45, hjust = 1)) +
 polyomics_scale_fill(palette = "grey", guide = "none")

GrahamHamilton/PolyomicsColours documentation built on Oct. 8, 2020, 12:21 a.m.