Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Latest commit

 

History

History
27 lines (17 loc) · 775 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 775 Bytes

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