minicanada {minimap}R Documentation

Make a tile grid map of Canada

Description

Make a tile grid map of Canada

Usage

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

## Not run: 
 minicanada(canada_abb, 1:13)

## End(Not run)

[Package minimap version 0.1.0 Index]