zb_color: Generate colors for zones

Description Usage Arguments Value Examples

View source: R/plot.R

Description

This function generates colors for zones.

Usage

1
zb_color(z, palette = c("rings", "hcl", "dartboard"))

Arguments

z

An 'sf' object containing zones covering the region

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)

Value

A vector of colors

Examples

1
2
3
z = zb_zone(london_c(), london_a())
zb_color(z)
plot(z[, "circle_id"], col = zb_color(z))

zonebuilder documentation built on July 13, 2021, 1:06 a.m.