Learn R Programming

nationalparkcolors (version 0.1.0)

park_palette: A National Park palette generator

Description

These are a handful of color palettes from National Park posters and images.

Usage

park_palette(name, n)

Arguments

name

Name of desired palette. Choices are: SmokyMountains, RockMountains, Yellowstone, Arches, ArticGates, MtMckinley, GeneralGrant, Hawaii, CraterLake , Saguaro , GrandTeton, BryceCanyon, MtRainier, Badlands, Redwoods, Everglades, Voyageurs @importFrom graphics rgb rect par image text

n

Number of colors desired. Most palettes now only have 5 to 8 colors. Most color schemes are derived from Color Inspiration <U+2013> National Park WPA Posters. If omitted, uses all colours.

Value

A vector of colours.

Examples

Run this code
# NOT RUN {
park_palette("SmokyMountains")
park_palette("Yellowstone", 3)
# }

Run the code above in your browser using DataLab