jeb: Jeb

Description Usage Arguments Details Examples

Description

Produce an election victory map overlaid with a picture (e.g. of Jeb! Bush)

Usage

1
2
jeb(image = "default", lookup = "GADM3", country = "USA",
  level = 1, bg_col = "goldenrod", name = NULL)

Arguments

image

The image to overlay. Default to Jeb! Bush celebrating, otherwise, a file path to (preferably) a .png file

lookup

The method used to find the shapefile to use as the electoral background. Defaults to GADM

country

The GADM code for the country shapefiles to download from GADM. If not using GADM, searches the environment for a matching object

level

The GADM level for the country shapefiles to download from GADM. Requires GADM to be the lookup method

bg_col

The background fill colour for the electoral shapefiles. Defaults to a Goldenrod shape.

name

The name for the country on the final plot title. If using GADM, will find this from the NAME_0 column of the downloaded shape

Details

Generates a plot of an image over an electoral map. E.g. quickly and easily allows for Jeb! meme style maps to be generated

Examples

1
2
3
plot <- Jeb::jeb(image = "default",
 lookup = "GADM3", country = "Sweden", level = 2,
  bg_col = "Goldenrod", name = "Swedish Federal")

RobWHickman/Jeb documentation built on May 17, 2019, 11:40 a.m.