mapcan: Canadian maps function

Description Usage Arguments Examples

Description

A function that returns a data frame with map data, for use in ggplot.

Usage

1
mapcan(boundaries, type, province = all, territories = TRUE)

Arguments

boundaries

Unquoted expression specifying boundary divisions. Options are province, census, and ridings.

type

Unquoted expression specifying type of map. Options are standard (for a standard geographic map), cartogram (for a map that alters the geography of the map based on population size at the province or census division level), and bins (for a binned map of federal electoral districts).

province

An unquoted expression specifying province to plot. Acceptable input is French or English province names, or two-letter provincial abbreviations. Default is to plot all provinces.

territories

A logical value indicating whether or not to include territories in the the returned data frame, default is FALSE

Examples

1
mapcan(boundaries = census, type = standard)

mapcan documentation built on May 9, 2019, 5:03 p.m.