R package to load common colors that conform to branding guide
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
man
.Rbuildignore
.gitignore
DESCRIPTION
LICENSE
NAMESPACE
README.md
Read-and-delete-me
espark_colors.Rproj

README.md

esparkcolors

R package to load common colors that conform to the eSpark branding guide

Installation

Install with the devtools package

install.packages("devtools")
library(devtools)
devtools::install_github("espark/esparkcolors")
library(esparkcolors)

Usage

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

ColorsBar