Skip to contents

Apply discrete color scale Partial code for this function can be attributed to ggthemes.

Usage

scale_duke_discrete(
  ...,
  na.value = "#B5B5B5",
  guide = "legend",
  aesthetics = c("colour", "color", "fill")
)

Arguments

...

Arguments passed on to discrete_scale.

na.value

Color used for NA values

guide

the name used to create the guide. See guides for more info.

aesthetics

String or vector of strings detailing what aesthetic features this disrete scale can apply to.

Value

a visualization with discrete duke color scale

Examples

#' # Default example
plot3 <- ggplot2::ggplot(iris, ggplot2::aes(x=Species, fill = Species)) + ggplot2::geom_bar()
plot3 + scale_duke_discrete()