redist.plot.plans | R Documentation |
Plot a district assignment
redist.plot.plans(
plans,
draws,
shp,
qty = NULL,
interactive = FALSE,
...,
geom = NULL
)
plans |
a |
draws |
the plan(s) to plot. Will match the |
qty |
the quantity to plot. Defaults to the district assignment. |
interactive |
if |
... |
additional arguments passed to the plotting functions. |
geom , shp |
the |
A ggplot
library(dplyr)
data(iowa)
iowa <- redist_map(iowa, existing_plan = cd_2010, pop_tol = 0.05, total_pop = pop)
plans <- redist_smc(iowa, nsims = 100, silent = TRUE)
redist.plot.plans(plans, c(1, 2, 3, 4), iowa)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.