scale_discrete: Discrete scales to use for ggplot2

Description Usage Arguments Details Value Examples

Description

These functions provide the option to use State of Minnesota discrete palette colors with ggplot2. There are ten available discrete colors available.

Usage

1
2
3
4
5

Arguments

...

Arguments to pass on to 'ggplot2::discrete_scale()'

Details

Available State of Minnesota color names are available in the 'show_palette_mn' function.

Value

A 'ScaleDiscrete' object that can be added to a 'ggplot' object

Examples

1
2
3
4
5
if (require("ggplot2")) {
  ggplot(mtcars, aes(x = mpg, y = hp, color = as.factor(carb))) +
    geom_point(size = 4) +
    scale_color_mn_d()
}

jfangmeier/mnbrand documentation built on Jan. 25, 2022, 6:35 p.m.