README.md

UFcolors R-package

R package to manage the University of Florida (UF) institutional colors into ggplot. Based on: Link. Colors from Here and Here.

# To install:

library(devtools)
install_github("ArielSotoCaro/UFcolors")

List of palettes

Some examples

Identifying all the colors and its respective codes:

UF_colors()

Code for a specific color

UF_colors("orange")

Creating a 10 color levels using primary palette

UF_pal("primary")(10)

3 examples in the ggplot context

ggplot(iris, aes(Sepal.Width, Sepal.Length, color = Species)) +
  geom_point(size = 4) +
  scale_color_UF('nice')
ggplot(iris, aes(Sepal.Width, Sepal.Length, color = Sepal.Length)) +
  geom_point(size = 4, alpha = .6) +
  scale_color_UF(discrete = FALSE, palette = "muted")
ggplot(mpg, aes(manufacturer, fill = manufacturer)) +
  geom_bar() +
  theme(axis.text.x = element_text(angle = 45, hjust = 1)) +
  scale_fill_UF(palette = "muted", guide = "none")


ArielSotoCaro/UFcolors documentation built on May 27, 2021, 12:13 p.m.