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")
UF_colors()
UF_colors("orange")
UF_pal("primary")(10)
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.