This function opens an interactive map of the zones

zb_view(z, alpha = 0.4, palette = c("rings", "hcl", "dartboard"), title = NULL)

Arguments

z

An `sf` object containing zones covering the region

alpha

Alpha transparency, number between 0 (fully transparent) and 1 (not transparent)

palette

Palette type, one of "hcl" (a palette based on the HCL color space), "rings" (a palette which colors the rings using the YlOrBr color brewer palette), "dartboard" (a palette which resembles a dartboard)

title

The title of the plot

Value

An interactive map created with `tmap`

Examples

# \donttest{
z = zb_zone(london_c(), london_a())
zb_view(z, palette = "rings")
#> Updating tmap settings with:
#> tmap::tmap_options(check.and.fix = TRUE)
#> Warning: The shape z is invalid (after reprojection). See sf::st_is_valid
# }