map_national: Map the Congressional data for the nation

Description Usage Arguments Examples

View source: R/mapping.R

Description

Map the Congressional data for the nation

Usage

1
2
map_national(data, congress = NULL, congressional_boundaries = TRUE,
  state_boundaries = FALSE, width = "100%", height = "800px")

Arguments

data

An sf object with elections data returned by join_to_spatial.

congress

The number of the Congress. If NULL, it will be guessed from the data.

congressional_boundaries

Draw Congressional district boundaries in addition to county boundaries?

state_boundaries

Draw state boundaries in addition to county boundaries?

width

The width of the map in pixels or percentage. Passed on to leaflet.

height

The height of the map in pixels or percentage. Passed on to leaflet.

Examples

1
2
map_data <- get_national_map_data("meae.congressional.congress01.national.county")
map_national(map_data)

mapping-elections/mappingelections documentation built on July 24, 2019, 9:42 a.m.