Skip to contents

Returns a consistent fill scale for discrete categories using viridis. Use this for bar plots, boxplots, and other geoms with discrete fill aesthetics.

Usage

scale_fill_mixsynergy_discrete(option = "viridis", ...)

Arguments

option

Viridis color option: "viridis" (default), "magma", "plasma", "inferno", "cividis", "rocket", "mako", "turbo"

...

Additional arguments passed to scale_fill_viridis_d()

Value

A ggplot2 scale object

Examples

if (FALSE) { # \dontrun{
library(ggplot2)
ggplot(data, aes(x, y, fill = cluster)) + 
  geom_col() + 
  scale_fill_mixsynergy_discrete()
} # }