Skip to contents

Plot a map of the zone groups

Usage

plot_zones_map(
  zones_sf,
  zone_group_var = "zone_group_label",
  zone_group_order,
  include_basemap = FALSE,
  colors = NULL,
  plot_mode = "plot"
)

Arguments

zones_sf

A simple features object of the zone groups. Must have columns zone_group_label and "Zone Group".

zone_group_var

The name of the column in zones_sf that has the zone group labels.

zone_group_order

Character vector specifying the order of zone groups

include_basemap

Logical. Should a basemap be included?

colors

A vector of colors to use for the zone groups. If NULL, a color palette will be generated.

plot_mode

The mode to use for plotting. Either "plot" or "view". Passed to tmap_mode.

Value

A tmap object