vangogh_palette {vangogh} | R Documentation |
A Van Gogh color palette generator.
Description
These are some color palettes from a selection of Vincent van Gogh's paintings.
Usage
vangogh_palette(name, n, type = c("discrete", "continuous"))
Arguments
name |
Name of desired palette. Choices are:
|
n |
Number of colors desired. All palettes have a standard of 5 colors. If omitted, uses all colors. |
type |
Either "continuous" or "discrete". Use "continuous" to automatically interpolate between colours. @importFrom graphics rgb rect par image text |
Value
A vector of colors.
Examples
vangogh_palette("StarryNight")
vangogh_palette("SelfPortrait")
vangogh_palette("Cypresses")
vangogh_palette("Cypresses", 3)
# If you want a continous paletted based on the colors already found in the preset
# palettes, you can interpolate between existing colours accordingly.
pal <- vangogh_palette(21, name = "StarryRhone", type = "continuous")
[Package vangogh version 0.1.1 Index]