Simulation Methods for Legislative Redistricting

add_reference | Add a reference plan to a set of plans |

as.matrix.redist | Extract the redistricting matrix from a 'redist' object |

classify_plans | Hierarchically classify a set of redistricting plans |

compare_plans | Make a comparison between two sets of plans |

fl25 | Florida 25 Precinct Shape File |

fl250 | Florida 250 Precinct Shape File |

fl25_adj | Florida 25 Precinct File |

fl25_enum | All Partitions of 25 Precincts into 3 Congressional Districts... |

fl70 | Florida 70 Precinct Shape File |

flip_constraints_helper | Flip Constraints Helper |

get_adj | Get and set the adjacency graph from a 'redist_map' object |

get_existing | Extract the existing district assignment from a 'redist_map'... |

get_mh_acceptance_rate | Extract the Metropolis Hastings Acceptance Rate |

get_plans_matrix | Extract the matrix of district assignments from a... |

get_plans_weights | Extract the sampling weights from a redistricting simulation. |

get_pop_tol | Get and set the population tolerance from a 'redist_map'... |

get_sampling_info | Extract the sampling information from a redistricting... |

get_target | Extract the target district population from a 'redist_map'... |

imp_confint | Confidence Intervals for Importance Sampling Estimates |

iowa | Iowa County File |

is_contiguous | Check that a 'redist_map' object is contiguous |

is_county_split | Identify which counties are split by a plan |

last_plan | Extract the last plan from a set of plans |

match_numbers | Renumber districts to match an existing plan |

merge_by | Merge map units |

number_by | Renumber districts to match a quantity of interest |

plot.redist_classified | Plot a plan classification |

plot.redist_map | Plot a 'redist_map' |

plot.redist_plans | Summary plots for '\link{redist_plans}' |

prec_assignment | Extract the district assignments for a precinct across all... |

prec_cooccurrence | Compute a matrix of precinct co-occurrences |

print.redist | Print legacy redist objects |

print.redist_classified | Print redist_classified objects |

print.redist_map | Generic to print redist_map |

print.redist_plans | Print method for redist_plans |

pullback | Pull back plans to unmerged units |

redist.adjacency | Adjacency List functionality for redist |

redist.calc.frontier.size | Calculate Frontier Size |

redist.choropleth | Creates a Choropleth |

redist.coarsen.adjacency | Coarsen Adjacency List |

redist.combine | Combine successive runs of 'redist.flip' |

redist.combine.anneal | redist.combine.anneal |

redist.combine.mpi | Combine successive runs of 'redist.mcmc.mpi' |

redist.compactness | Calculate compactness measures for a set of plans |

redist.competitiveness | Compute Competitiveness |

redist.constraint.helper | Create Constraints for SMC |

redist.county.id | Create County IDs |

redist.county.relabel | Relabel Discontinuous Counties |

redist.crsg | Redistricting via Compact Random Seed and Grow Algorithm |

redist.diagplot | Diagnostic plotting functionality for MCMC redistricting. |

redist.distances | Compute Distance between Partitions |

redist.enumerate | Deprecated: Exact Redistricting Plan Enumerator |

redist.enumpart | Enumerate All Parititions |

redist.findparams | Run parameter testing for 'redist.flip' |

redist.find.target | Find Majority Minority Remainder |

redist_flip | 'Flip' Markov Chain Monte Carlo Redistricting Simulation |

redist.flip | MCMC Redistricting Simulator |

redist.flip.anneal | MCMC Redistricting Simulator using Simulated Annealing |

redist.freeze | Freeze Parts of a Map |

redist.group.percent | Calculate Group Percent by District |

redist.identify.cores | Identify Cores of a District (Heuristic) |

redist.init.enumpart | Initialize enumpart |

redist.ipw | Inverse probability reweighting for MCMC Redistricting |

redist_map | Create a 'redist_map' object. |

redist.map | Creates a map with optional graph overlay |

redist.mcmc.mpi | MCMC Redistricting Simulator using MPI |

redist_mergesplit | Merge-Split/Recombination MCMC Redistricting Sampler |

redist.metrics | Calculate gerrymandering metrics for a set of plans |

redist-package | Simulation Methods for Legislative Redistricting |

redist.parity | Calculates Maximum Deviation from Population Parity |

redist_plans | A set of redistricting plans |

redist.plot.adj | Creates a Graph Overlay |

redist.plot.cores | Plot Cores |

redist.plot.distr_qtys | Plot quantities by district |

redist.plot.hist | Plot a histogram of a summary statistic |

redist.plot.majmin | Majority Minority Plots |

redist.plot.map | Plot a Map |

redist.plot.penalty | Visualize VRA Penalty |

redist.plot.plans | Plot a district assignment |

redist.plot.scatter | Scatter plot of plan summary statistics |

redist.plot.varinfo | Static Variation of Information Plot |

redist.prep.enumpart | Prepares a run of the enumpart algorithm by ordering edges |

redist.prep.polsbypopper | Prep Polsby Popper Perimeter Dataframe |

redist_quantile_trunc | Helper function to truncate importance weights |

redist.random.subgraph | Return a random subgraph of a shape |

redist.read.enumpart | Read Results from enumpart |

redist.reduce.adjacency | Reduce Adjacency List |

redist.reindex | Reorders district numbers |

redist.rsg | Redistricting via Random Seed and Grow Algorithm |

redist.run.enumpart | Runs the enumpart algorithm |

redist.samplepart | DEFUNCT: Sample partitions using spanning trees |

redist.segcalc | Segregation index calculation for MCMC redistricting. |

redist_shortburst | Redistricting Optimization through Short Bursts |

redist.sink.plan | Sink Plans to 1:ndists |

redist_smc | SMC Redistricting Sampler |

redist.smc_is_ci | Confidence Intervals for Importance Sampling Estimates |

redist.splits | Count County Splits |

redist.subset | Subset a shp |

redist.uncoarsen | Uncoarsen a District Matrix |

reexports | Objects exported from other packages |

scorer-arith | Scoring function arithmetic |

scorers | Scoring functions for 'redist_shortburst' |

subset_sampled | Subset to sampled or reference draws |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.