zb_color: Generate colors for zones

View source: R/plot.R

zb_colorR Documentation

Generate colors for zones

Description

This function generates colors for zones.

Usage

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

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

zonebuilders/zonebuilder documentation built on June 13, 2024, 9:34 p.m.