minicanada: Make a tile grid map of Canada

Description Usage Arguments Examples

Description

Make a tile grid map of Canada

Usage

1
2
minicanada(pt, pt_colors, border_colors = rep("white", 13), pt_names = TRUE,
  pt_name_colors = rep("white", 13), pt_name_cex = 1, font = NULL)

Arguments

pt

A vector of Canadian province and territory postal abbreviations. This vector must be some permutation of canada_abb.

pt_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 pt.

border_colors

Like pt_colors but specifying the border of the square.

pt_names

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

pt_name_colors

Like pt_colors but specifying the color of the text displayed in each province or territory.

pt_name_cex

The size of the text displayed inside of each province or territory.

font

The font of the text displayed inside of each province or territory. 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: 
 minicanada(canada_abb, 1:13)

## End(Not run)

Example output



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