View source: R/futurevisions.R
futurevisions | R Documentation |
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/
futurevisions(palette, ids = 0, rev = FALSE)
fv(palette, ids = 0, rev = FALSE)
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 |
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()
.
A vector of strings indicating colors in hexidecimal formant.
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.