Skip to contents

Create a constructor for ggplot for box plots, bar plots, etc.

Usage

scale_fill_statworx(
  palette = "statworx_standards_1",
  discrete = TRUE,
  reverse = FALSE,
  col_list = c(),
  ...
)

Arguments

palette

A color palette.

discrete

If true, discrete palette is returned. Otherwise, continuous palette.

reverse

If true, order of palette is reversed.

col_list

Provide a vector of colors if parameter palette="custom".

...

arguments passed to discrete_scale

Value

Scale constructor for ggplot.

Examples

ggplot(iris, aes(Sepal.Width, Sepal.Length, color = Species)) +
geom_point() +  scale_fill_statworx()