Description Usage Arguments Details Value Examples
These functions provide the option to use State of Minnesota discrete palette colors with ggplot2. There are ten available discrete colors available.
1 2 3 4 5 |
... |
Arguments to pass on to 'ggplot2::discrete_scale()' |
Available State of Minnesota color names are available in the 'show_palette_mn' function.
A 'ScaleDiscrete' object that can be added to a 'ggplot' object
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()
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.