Inspired by this tweet from Dr. Margaret Siple this is a minimal package designed to add color palettes based on the photos. This package was developed at the same time DL Miller created a gist to allow people to use those palettes as well. This package aims to allow users to install the functions needed to use these palettes.
You can get this package using the remotes pacakge by typing
remotes::install_github("delabj/USFWSpalettes")
or with devtools
remotes::install_github("delabj/USFWSpalettes")
This package contains a few basic functions and lists.
USFWS_palettes
(List of Palettes)USFWS_palette()
scale_color_USFWS()
scale_fill_USFWS()
library(tidyverse)
library(USFWSpalettes)
# Get a palette
USFWS_palette(5, "aurora", TRUE)
diamonds %>%
ggplot(aes(x=cut, fill=cut))+
geom_bar()+
theme_minimal()+
scale_fill_USFWS()+
labs(title = "Count of Diamonds by Cut")
The following is an example of all palettes included.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.