Learn R Programming

minimap (version 0.1.0)

miniusa: Make a tile grid map of The United States of America

Description

Make a tile grid map of The United States of America

Usage

miniusa(states, state_colors, border_colors = rep("white", 51), state_names = TRUE, state_name_colors = rep("white", 51), state_name_cex = 1, font = NULL)

Arguments

states
A vector of US state postal abbreviations. This vector must be some permutation of usa_abb.
state_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 states.
border_colors
Like state_colors but specifying the border of the square.
state_names
Should the postal codes for each state be displayed in the center of the state? The default value is TRUE.
state_name_colors
Like state_colors but specifying the color of the text displayed in each state.
state_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: 
#  miniusa(state_abb, 1:51)
# ## End(Not run)

Run the code above in your browser using DataLab