scale_color_natparks_c: NatParksPalettes for plotting with ggplot2

View source: R/NatParksPalettes.R

scale_color_natparks_cR Documentation

NatParksPalettes for plotting with ggplot2

Description

Function for using NatParksPalettes colors schemes in ggplot2. Use scale_color_natparks_d and scale_fill_natparks_d for discrete scales and scale_color_natparks_c and scale_fill_natparks_c for continuous scales.

Usage

scale_color_natparks_c(name, direction = 1, ...)

Arguments

name

Name of Palette. Choices are: Acadia, Arches, Arches2, Banff, Bryce Canyon, CapitolReef, Charmonix, Cuyahoga, DeathValley, Denali, Everglades, Glacier, GrandCanyon, Halekala, IguazuFalls, KingsCanyon, LakeNakuru, Olympic, Redwood, RockyMtn, Saguaro, SmokyMtns, SouthDowns, Torres, Triglav, WindCave, Volcanoes, Yellowstone, and Yosemite.

direction

Sets order of colors. Default palette is 1. If direction is -1, palette color order is reversed

...

Other arguments passed on to scale_color_gradientn

Value

A function that returns a continuous color scale.

Examples

library(ggplot2)
ggplot(data=iris, aes(x=Sepal.Length, y=Sepal.Width, color=Sepal.Length)) +
geom_point() +
scale_color_natparks_c("Arches2", direction=-1)

NatParksPalettes documentation built on Oct. 10, 2022, 1:06 a.m.