persily | R Documentation |
Searches the local area for a combination of minimizing county splits, compactness, population parity, and keeping close to the original plan
persily(plan, map, counties = NULL)
plan |
a single plan to optimize from |
map |
a redist map object |
counties |
Required |
a redist_plans object with one plan
data(iowa)
map <- redist_map(iowa, existing_plan = cd_2010, pop_tol = 0.01, total_pop = pop)
plan <- get_plans_matrix(redist_smc(map, 1))[, 2]
local <- persily(plan = plan, map = map, counties = region)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.