README.md

Cat Color R palettes

Inspired by the Pacific Northwest color palette, I wanted to make a palette based on something I love: my cats! I've included color palettes based on Chestnut (my cat), SnowLion, Pumpkin Seed, and Nicholas (cats from home).

While shades of brown and orange probably won't be practically applicable in most settings (also it's hard to make a palette of a black cat), why not make your R graphics look as much like my cats as possible?

I used the Pantone Studio iPhone app to extract colors, then Chroma.js Color Palette Helper to make the colors colorblind friendly and arrange better.

How to Install Package

install.packages("devtools") 
devtools::install_github("empalmer/catlette") 

The cats

Chestnut

cat_palette(name="Chestnut",type="continuous")

Pumpkin (left)

cat_palette(name="Pumpkin",type="continuous")

SnowLion (right)

cat_palette(name="SnowLion",type="continuous")

Nicholas

cat_palette(name="Nicholas",type="continuous")

Example

Location of stray pets picked up in Austin area, based on data downloaded November 15th 2019 from https://data.austintexas.gov/Health-and-Community-Services/Austin-Animal-Center-Stray-Map/kz4x-q9k5.

qmplot(x = lon,y = lat,data=cat_data) +
    stat_density_2d(aes(fill = ..level..),
                    geom = "polygon",
                    alpha = .3) +
    scale_fill_gradientn(colours = cat_palette(name="Chestnut",type="continuous"))



empalmer/catlette documentation built on Nov. 18, 2019, 12:03 a.m.