Skip to contents

University of Michigan colors for R Graphs

Installation

You will need to install devtools if you have not already done so: install.packages("devtools")

Then, use devtools to install the michigancolors package from GitHub: devtools::install_github("agrogan1/michigancolors")

Examples

hist(iris$Petal.Length, col = michigancolors())

hist(x, col = michigancolors())

plot(x, y, col = michigancolors("blue"))

ggplot(iris, aes(x = Petal.Length, y = Sepal.Length, color = Species)) + geom_point() + geom_smooth() + ggtitle("Scatterplot of Iris Data Set") + theme_minimal() + scale_color_manual(values = michigancolors())

Allowable Colors

Allowable colors are: “blue”, “maize”, “tappan red”, “ross school orange”, “wave field green”, “taubman teal”, “arboretum blue”, and “ann arbor amethyst”