futurevisions: Access Visions of the Future color palettes

View source: R/futurevisions.R

futurevisionsR Documentation

Access Visions of the Future color palettes

Description

This function returns one of several color palettes based on the Visios of the Future poster series developed by NASA's Jet Propulsion Laboratory at the California Institute of Technology. For more information, including links free to full-sized versions of the posters, please see https://www.jpl.nasa.gov/visions-of-the-future/

Usage

futurevisions(palette, ids = 0, rev = FALSE)

fv(palette, ids = 0, rev = FALSE)

Arguments

palette

A string.

ids

A numeric vector indicating which elements of the palette should be returned. By default, all values are returned.

rev

A logical. If TRUE, the values will be returned in the opposite order. FALSE by default.

Details

Current options are "venus", "earth", "mars", "jupiter", "ceres", "enceladus", "europa", "titan", "cancri", "hd", "kepler186", "kepler16b", "pegasi", "pso", "trappest", grand_tour", "atomic_clock", "atomic_red", "atomic_blue", and "atomic_orange".

fv() is a shorthand version of futurevisions().

Value

A vector of strings indicating colors in hexidecimal formant.

Examples

futurevisions("mars")
futurevisions("mars", rev = TRUE)
futurevisions("pso", 1:4)
fv("pso", 1:4)

require(ggplot2)
ggplot(mpg, aes(cty, hwy, color = factor(cyl))) +
   geom_jitter() +
   scale_color_manual(values = fv("mars", 1:4))

JoeyStanley/futurevisions documentation built on Nov. 29, 2023, 2:44 a.m.