R package to load common colors that conform to the eSpark branding guide
Install with the devtools package
install.packages("devtools")
library(devtools)
devtools::install_github("espark/esparkcolors")
library(esparkcolors)
Once loaded you can use the eSparkColor() function to load the hex value for one of seven colors
eSparkColor("blue")
Or pass a vector of color names
eSparkColor(c("blue", "green", "blue"))
There are seven available colors. Use them in plots
barplot(7:1, col=eSparkColor(c("blue", "green", "orange", "purple", "red", "yellow", "gray")))