This function facilitates comparing an existing (i.e., non-simulated) redistricting plan to a set of simulated plans.
add_reference(plans, ref_plan, name = NULL)
a redist_plans
object
an integer vector containing the reference plan. It will be
renumbered to 1..ndists
.
a human-readable name for the reference plan. Defaults to the
name of ref_plan
.
a modified redist_plans
object containing the reference plan