redist.plot.wted.adj {redist} | R Documentation |
Plot Weighted Border Adjacency
Description
Plots the weighted adjacency graph by how often precincts coocur. If an argument to counties is provided, it subsets the edges to plot to those that cross over the county boundary.
Usage
redist.plot.wted.adj(
shp,
plans,
counties = NULL,
ref = TRUE,
adj = NULL,
plot_shp = TRUE
)
Arguments
shp |
A SpatialPolygonsDataFrame, sf object, or redist_map. Required. |
plans |
A |
counties |
unquoted name of a column in |
ref |
Plot reference map? Defaults to TRUE which gets the existing plan from |
adj |
A zero-indexed adjacency list. Extracted from |
plot_shp |
Should the shapes be plotted? Default is TRUE. |
Value
ggplot
Examples
data(iowa)
shp <- redist_map(iowa, existing_plan = cd_2010, pop_tol = 0.01)
plans <- redist_smc(shp, 100)
redist.plot.wted.adj(shp, plans = plans, counties = region)
[Package redist version 4.2.0 Index]