Learn R Programming

eiCompare (version 3.0.1)

map_shape_points: Function for making basic choropleth maps of longitude and latitude points using the tigris package and ggplot

Description

Function for making basic choropleth maps of longitude and latitude points using the tigris package and ggplot

Usage

map_shape_points(
  voter_file,
  shape_file,
  crs = "+proj=longlat +ellps=GRS80",
  title = "title"
)

Value

Plots of mapped ecological units desired and voter latitude and longitudes

Arguments

voter_file

a voter file with latitude, longitude, or latitude/longitude and other geographic data.

shape_file

a shape file based on desired ecological unit (i.e. state, county, block, tract)

crs

the Coordinate reference system, default is crs="+proj=latlong +ellps=GRS80 +no_defs"

title

the tile of the map

Author

Loren Collingwood <loren.collingwood@ucr.edu>

Juandalyn Burke <jcburke@uw.edu>