Description Usage Arguments Value Examples
View source: R/classes_methods.R
A collection of color palettes from LaCroix, movies and whatever else that's colorful and interesting.
1 | croix_palette(name, n = NULL, type = c("discrete", "continuous"))
|
name |
Name of desired palette. To see list of available palettes,
use |
n |
Number of colors desired. |
type |
How do you want the colors displayed? Current options are
|
A vector of colours.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Return vector
crPal <- croix_palette("croix_pure")
crPal
# Visualize palette
crPal <- croix_palette("mov_the_shining")
plot(crPal)
# Get summary statistics of palette
crPal <- croix_palette("mov_akira")
summary(crPal)
# Get a gradient of palette
crPal <- croix_palette("croix_coconut", n = 50, type = "continuous")
plot(crPal)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.