Description Usage Arguments Examples
View source: R/ggplot_extensions.R
Custom color scale to use the USFWS palettes.
1 | get_USFWS_palettes(palette="main", reverse= F, ...)
|
palette |
Name of the palette (dolly, sockeye, coaster, aurora, florida) |
reverse |
Boolean: should the palette be reversed |
1 2 3 4 5 6 7 | library(tidyverse)
library(USFWSpalettes)
diamonds %>%
ggplot(aes(x=cut, fill=cut))+
geom_bar()+
theme_minimal()+
scale_fill_USFWS()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.