Skip to content
R package to manage UF institutional colors into ggplot
R
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
man
.Rbuildignore
.gitattributes
.gitignore
DESCRIPTION
LICENSE
NAMESPACE
README.md
UFcolors.Rproj

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

  • primary: #FA4616 #0021A5
  • muted: #E28F41 #6C9AC3
  • nice: #E18F41 #326698 #6C99C2 #A1DCED #BBBDC0
  • neutral: #CFB691 #CFDBCB #FFEFCF #B1B3B6
  • bright: #5E8E3F #593674 #FCAF17 #D7182A

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")
You can’t perform that action at this time.