redist.plot.adj | R Documentation |
Creates a Graph Overlay
redist.plot.adj(
shp,
adj = NULL,
plan = NULL,
centroids = TRUE,
drop = FALSE,
plot_shp = TRUE,
zoom_to = NULL,
title = ""
)
shp |
A SpatialPolygonsDataFrame or sf object. Required. |
adj |
A zero-indexed adjacency list. Created with redist.adjacency if not supplied. Default is NULL. |
plan |
A numeric vector with one entry for each precinct in shp.
Used to remove edges that cross boundaries. Default is |
centroids |
A logical indicating if centroids should be plotted. Default is |
drop |
A logical indicating if edges that cross districts should be dropped. Default is |
plot_shp |
A logical indicating if the shp should be plotted under the
graph. Default is |
zoom_to |
|
title |
A string title of plot. Defaults to empty string. Optional. |
ggplot map
data(iowa)
redist.plot.adj(shp = iowa, plan = iowa$cd_2010)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.