Learn R Programming

minimap (version 0.1.0)

minimexico: Make a tile grid map of Mexico

Description

Make a tile grid map of Mexico

Usage

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

Run this code
## Not run: 
#  minimexico(mexico_abb, 1:32)
# ## End(Not run)

Run the code above in your browser using DataLab