Description Usage Arguments Details Examples
Produce an election victory map overlaid with a picture (e.g. of Jeb! Bush)
1 2 |
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 |
Generates a plot of an image over an electoral map. E.g. quickly and easily allows for Jeb! meme style maps to be generated
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.