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

Description Usage Arguments Examples

Description

Make a tile grid map of The United States of America

Usage

1
2
3
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

1
2
3
4
## Not run: 
 miniusa(state_abb, 1:51)

## End(Not run)

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