Plot a redist_map
# S3 method for redist_map
plot(x, fill = NULL, by_distr = FALSE, adj = FALSE, ...)
the redist_map
object
<data-masking>
If
present, will be used to color the map units. If using data masking, may
need to explicitly name argument fill=...
in non-interactive
contexts to avoid S3 generic issues.
if TRUE
and fill
is not missing and, color by
district and indicate the fill
variable by shading.
if TRUE
, force plotting the adjacency graph. Overrides
by_distr
.
passed on to redist.plot.map
(or
redist.plot.adj
if adj=TRUE
).
Useful parameters may include zoom_to
, boundaries
, and
title
.
ggplot2 object
data(fl25)
d <- redist_map(fl25, ndists = 3, pop_tol = 0.05)
#> Projecting to CRS 3857
plot(d)
plot(d, BlackPop/pop)
data(fl25_enum)
fl25$dist <- fl25_enum$plans[, 5118]
d <- redist_map(fl25, existing_plan = dist)
#> Projecting to CRS 3857
plot(d)