Description Usage Arguments Value Examples
These are a handful of color palettes from the Space Movie franchise.
1 | SW_palette(name, n, type = c("discrete", "continuous"))
|
name |
Name of desired palette. Choices are: |
n |
Number of colors desired. If omitted, uses all colors. |
type |
Either "continuous" or "discrete". Use continuous if you want to automatically interpolate between colors. |
A vector of colors.
1 2 3 4 5 6 7 | SW_palette("Hera")
SW_palette("Sabine", 3)
"If you need more colors than normally found in a palette, you can use a continuous palette to interpolate between existing colors."
pal <- SW_palette(name = "Boba", n = 21, type = "continuous")
image(volcano, col = pal)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.