Package 'minimap'

Title: Create Tile Grid Maps
Description: Create tile grid maps, which are like choropleth maps except each region is represented with equal visual space.
Authors: Sean Kross [aut, cre]
Maintainer: Sean Kross <[email protected]>
License: MIT + file LICENSE
Version: 0.1.0
Built: 2024-10-31 21:08:17 UTC
Source: https://github.com/seankross/minimap

Help Index


Postal Abbreviations for Canada

Description

Postal Abbreviations for Canada

Usage

canada_abb

Format

An object of class character of length 13.

Examples

## Not run: 
 canada_abb

## End(Not run)

Production and farm value of maple products in Canada

Description

Production and farm value of maple products in Canada

Usage

maple

Format

A data frame with columns:

Year

A value between 1924 and 2015.

Syrup

Maple products expressed as syrup, total in thousands of gallons.

CAD

Gross value of maple products in thousands of Canadian dollars.

Region

Postal code abbreviation for territory or province.

Source

Statistics Canada. Table 001-0008 - Production and farm value of maple products, annual. http://www5.statcan.gc.ca/cansim/

Examples

## Not run: 
 maple

## End(Not run)

Postal Abbreviations for Mexico

Description

Postal Abbreviations for Mexico

Usage

mexico_abb

Format

An object of class character of length 32.

Examples

## Not run: 
 mexico_abb

## End(Not run)

Monthly milk production in Canada

Description

Monthly milk production in Canada

Usage

milk

Format

A data frame with columns:

Year

A value between 1976 and 2015.

Month

A value between 1 and 12.

Region

Postal code abbreviation for territory or province.

Kiloliters

Milk sold off farms in kiloliters.

Source

Statistics Canada. Table 003-0011 - Milk production and utilization, monthly. http://www5.statcan.gc.ca/cansim/

Examples

## Not run: 
 milk

## End(Not run)

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)

Make a tile grid map of Mexico

Description

Make a tile grid map of Mexico

Usage

minimexico(estados, estados_colors, border_colors = rep("white", 32),
  estados_names = TRUE, estados_name_colors = rep("white", 32),
  estados_name_cex = 1, font = NULL)

Arguments

estados

A vector of Mexican state postal abbreviations. This vector must be some permutation of mexico_abb.

estados_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 estados.

border_colors

Like estados_colors but specifying the border of the square.

estados_names

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

estados_name_colors

Like estados_colors but specifying the color of the text displayed in each state.

estados_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

## Not run: 
 minimexico(mexico_abb, 1:32)

## End(Not run)

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

## Not run: 
 miniusa(state_abb, 1:51)

## End(Not run)

Same sex marriage in the US

Description

Changes in the legality of same sex marriage in the United States over time.

Usage

ssm

Format

A data frame with columns:

State

State Abbreviation

Status

Legal status. Either bbs meaning banned by statute, nl meaning not legal, legal, bbca meaning banned by constitutional ammendment, or dis meaning disputed.

Year

Year status went into effect.

Source

http://www.nytimes.com/interactive/2015/03/04/us/gay-marriage-state-by-state.html

Examples

## Not run: 
 ssm

## End(Not run)

Postal Abbreviations for The United States of America

Description

Postal Abbreviations for The United States of America

Usage

usa_abb

Format

An object of class character of length 51.

Examples

## Not run: 
 usa_abb

## End(Not run)