amerika_palette {amerika} | R Documentation |
amerika color palette generator
Description
amerika color palette generator
Usage
amerika_palette("name", n, "type")
Arguments
name |
Name of the specific palette in quotation marks. The options are: |
n |
Number of colors to select from the palette. If null, then all colors in the palette are selected |
type |
Specify the type of color mapping, either "continuous" or "discrete" in quotation marks. Use "continuous" to include more colors than those in the palette. See |
Value
A vector of colors
References
Karthik Ram and Hadley Wickham. 2015. wesanderson: a Wes Anderson palette generator. R package version 0.3.
Examples
# Display each palette
amerika_palette("Republican")
amerika_palette("Democrat")
amerika_palette("Dem_Ind_Rep3")
amerika_palette("Dem_Ind_Rep5")
amerika_palette("Dem_Ind_Rep7")
# Interpolating between existing colors based on the palettes using the "continuous" type
amerika_palette(50, name = "Republican", type = "continuous")
amerika_palette(50, name = "Democrat", type = "continuous")
amerika_palette(50, name = "Dem_Ind_Rep3", type = "continuous")
amerika_palette(50, name = "Dem_Ind_Rep5", type = "continuous")
amerika_palette(50, name = "Dem_Ind_Rep7", type = "continuous")
[Package amerika version 0.1.0 Index]