README.md

cns: Color Naming System

The Color Naming System was an early grammar of color.

In it, colors are created using adjectives and base hues (like "dark blue"), so you won’t ever have to wonder if "steelblue" is darker than "dodgerblue".

Installation

You can install the released version of cns from CRAN with:

install.packages("cns")

And the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("nfultz/cns")

Example

library(cns)

barplot(1:3, col=cns('light red', 'red', 'dark purplish red'))



Try the cns package in your browser

Any scripts or data that you put into this service are public.

cns documentation built on July 19, 2021, 9:07 a.m.