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.
install.packages("devtools")
devtools::install_github("empalmer/catlette")
cat_palette(name="Chestnut",type="continuous")
cat_palette(name="Pumpkin",type="continuous")
cat_palette(name="SnowLion",type="continuous")
cat_palette(name="Nicholas",type="continuous")
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.