Learn R Programming

redist (version 4.2.0)

redist.plot.cores: Plot Cores

Description

Plot Cores

Usage

redist.plot.cores(shp, plan = NULL, core = NULL, lwd = 2)

Value

ggplot

Arguments

shp

A SpatialPolygonsDataFrame or sf object. Required.

plan

A numeric vector with one entry for each precinct in shp. Used to color the districts. Required.

core

Required. integer vector produced by redist.identify.cores().

lwd

Line width. Defaults to 2.