The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Type: Package
Title: Mexican Politics-Inspired Color Palette Generator
Version: 0.2.0
Maintainer: Alejandro Platas-López <alejandroplatasl@gmail.com>
BugReports: https://github.com/alexplatasl/mexicolors/issues
Description: A color palette generator inspired by Mexican politics, with colors ranging from red on the left to gray in the middle and green on the right. Palette options range from only a few colors to several colors, but with discrete and continuous options to offer greatest flexibility to the user. This package allows for a range of applications, from mapping brief discrete scales (e.g., four colors for Morena, PRI, and PAN) to continuous interpolated arrays including dozens of shades graded from red to green.
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
Encoding: UTF-8
RoxygenNote: 7.1.1
NeedsCompilation: no
Packaged: 2021-09-03 14:39:15 UTC; alex_
Author: Alejandro Platas-López ORCID iD [aut, cre]
Repository: CRAN
Date/Publication: 2021-09-07 09:30:02 UTC

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: morena, pri, pan, prd, cuatroT

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 examples below for more @importFrom graphics rgb rect par image text

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")

Mexican politics-inspired color palettes

Description

Use mexico_palette to produce desired color palette

Usage

mexico_palettes

Format

An object of class list of length 8.


mexicolors

Description

Mexican politics-inspired color palettes

Details

Mexican politics-inspired color palettes

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.