Add Compactness Metric Plots to a gt
Arguments
- tab
A
gttable with classgt_tbl- shp
An
sfobject- plan
A numeric vector with one entry for each precinct in
shp.- measures
A character vector indicating which measures to plot. Uses
guess_comp()if not supplied.- height
height, in pixels, of each image. Default is 200.
- ...
additional arguments. Not currently passed on.
Value
A gt::gt
Examples
rict(wv_plans, 'cd_2020') |>
gt_plot_compactness(wv, wv$cd_2020)
district
total_pop
chain
pop_overlap
total_vap
plan_dev
comp_edge
comp_polsby
pop_white
pop_black
pop_hisp
pop_aian
pop_asian
pop_nhpi
pop_other
pop_two
vap_white
vap_black
vap_hisp
vap_aian
vap_asian
vap_nhpi
vap_other
vap_two
pre_20_rep_tru
pre_20_dem_bid
adv_20
arv_20
county_splits
ndv
nrv
ndshare
e_dvs
pr_dem
e_dem
pbias
egap
gg_polsby
