National Parks Palettes

Color palettes inspired by National Parks.

Structure of this package is based on code from the MetBrewer package. For more National Parks inspired palettes, see the nationalparkcolors package.

For requests, questions, comments, concerns, etc. you can reach out to me at:
My Website: HERE
Twitter: HERE
LinkedIn: HERE
E-mail: kevinsblake@gmail.com

Content

Installation

Palettes

Functions

Colorblind Checking

Install Package

R

NatParksPalettes is on CRAN and able to be downloaded in R.

install.packages("NatParksPalettes")

GitHub

You can also download through GitHub.

install.packages("devtools")
devtools::install_github("kevinsblake/NatParksPalettes")

Usage

library(NatParksPalettes)

names(NatParksPalettes)
 [1] "Acadia"      "Arches"      "Arches2"     "Banff"       "BryceCanyon" "DeathValley" "Everglades"  "Glacier"    
 [9] "GrandCanyon" "KingsCanyon" "Olympic"     "Redwood"     "SmokyMtns"   "Yellowstone" "Yosemite"

Palettes

All Palettes

AllPals

Acadia

Acadia - Bass Harbor Head Lighthouse on Mount Desert Island, Jon Bilous, Dreamstime, LINK - Colorblind-Friendly ***

Arches

Arches - Delicate Arch with the La Sal Mountains in the background, Depositphotos, LINK - Colorblind-Friendly ***

Arches2

Arches2 - Delicate Arch evening, Lavish Singal LINK - Colorblind-Friendly ***

Banff

Banff - Moraine Lake, Andy Holmes, LINK ***

BryceCanyon

BryceCanyon - Sunrise Point, LINK - Colorblind-Friendly ***

DeathValley

DeathValley - Mesquite Flat Sand Dunes, LINK - Colorblind-Friendly ***

Everglades

Everglades - Aerial view, Getty Images, LINK ***

Glacier

Glacier - Inside an ice cave with blue ice, Kevin Haney, NPS, LINK - Colorblind-Friendly ***

GrandCanyon

GrandCanyon - Toroweap point at sunrise, Sumiko Scott, Shutterstock, LINK ***

KingsCanyon

KingsCanyon - Karla Rivera, LINK - Colorblind-Friendly ***

Olympic

Olympic - Sol Duc, Scott Malagold, LINK ***

Redwood

Redwood - Boy Scout Tree Trail, Lana Law, LINK ***

SmokyMtns

SmokyMtns - Little River Road heading to Cades Cove, Norman Lathrop, LINK ***

Yellowstone

Yellowstone - Grand Prismatic Spring at Yellowstone’s Midway Geyser Basin, Grant Ordelheide, LINK ***

Yosemite

Yosemite - Yosemite Valley, Leanne Harjer, LINK ***

Functions

You can retrieve palettes using various methods listed below.
natparks.pals(name="DeathValley",n=7,type="discrete")
Ex1
natparks.pals("Yellowstone", 5)
Ex2
natparks.pals("Olympic")

Ex3.png)

natparks.pals("Glacier",n=15,type="continuous")
Ex4
natparks.pals("Arches",n=100)
Ex5

ggplot2 Examples

Here are also some ways you can incorporate this package into {ggplot2}

ggplot(data=iris, aes(x=Species, y=Petal.Length, fill=Species)) +
  geom_violin() +
  scale_fill_manual(values=natparks.pals("Yellowstone", 3))
Ex6
ggplot(data=iris, aes(x=Sepal.Length, y=Sepal.Width, color=Species)) +
  geom_point(size=2) +
  scale_color_manual(values=natparks.pals("Banff", 3))
Ex7
ggplot(data=iris, aes(x=Species, y=Sepal.Width, color=Sepal.Width)) +
  geom_point(size=3) +
  scale_color_gradientn(colors=natparks.pals("Arches2"))
Ex8

Colorblind Friendly checking

The colorblind friendliness of all palettes have been checked using colorblindcheck. Those with [min_dist] >10 for all color vision deficiencies - deuteranopia, protanopia, and tritanopia - are considered colorblind friendly. You can list the colorblind-friendly palettes with the following code:

NatParksPalettes::colorblind_palettes
[1] "Acadia"      "Arches"      "Arches2"     "DeathValley" "Glacier"     "KingsCanyon"

You can also check if a specific palette is colorblind friendly using the function provided

NatParksPalettes::colorblind.friendly("DeathValley")
[1] TRUE