mexico_palette {mexicolors} | R Documentation |
Mexico color palette generator
Description
Mexico color palette generator
Usage
mexico_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
Philip Waggoner. 2019. amerika: American Politics-Inspired Color Palette Generator. R package version 0.1.0
Examples
# Display each palette
mexico_palette("morena")
mexico_palette("pri")
mexico_palette("pan")
mexico_palette("prd")
mexico_palette("cuatroT")
# Interpolating between existing colors based on the palettes using the "continuous" type
mexico_palette(50, name = "morena", type = "continuous")
mexico_palette(50, name = "pri", type = "continuous")
mexico_palette(50, name = "pan", type = "continuous")
mexico_palette(50, name = "prd", type = "continuous")
mexico_palette(50, name = "cuatroT", type = "continuous")
[Package mexicolors version 0.2.0 Index]