Learn R Programming

zonebuilder (version 0.1.0)

zb_color: Generate colors for zones

Description

This function generates colors for zones.

Usage

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

Value

A vector of colors

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)

Examples

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

Run the code above in your browser using DataLab