minimexico: Make a tile grid map of Mexico

Description Usage Arguments Examples

Description

Make a tile grid map of Mexico

Usage

1
2
3
minimexico(estados, estados_colors, border_colors = rep("white", 32),
  estados_names = TRUE, estados_name_colors = rep("white", 32),
  estados_name_cex = 1, font = NULL)

Arguments

estados

A vector of Mexican state postal abbreviations. This vector must be some permutation of mexico_abb.

estados_colors

A vector of "colors" in the R sense. For example strings ("blue"), hex codes ("#D0C7B9"), etc. The ith color in this vector will be the color of square that represents the ith element of estados.

border_colors

Like estados_colors but specifying the border of the square.

estados_names

Should the postal codes for each state be displayed in the center of the state? The default value is TRUE.

estados_name_colors

Like estados_colors but specifying the color of the text displayed in each state.

estados_name_cex

The size of the text displayed inside of each state.

font

The font of the text displayed inside of each state. The values "serif", "sans", and "mono" are safest to use. Use other fonts at your own risk. If NULL a sans-style font will be used.

Examples

1
2
3
4
## Not run: 
 minimexico(mexico_abb, 1:32)

## End(Not run)

Example output



minimap documentation built on May 1, 2019, 9:11 p.m.