Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
R
 
 
man
 
 
 
 
 
 
 
 
 
 
 
 

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")

About

R package to manage UF institutional colors into ggplot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages