zb_quadrat: Divide a region into quadrats

View source: R/quadrat.R

zb_quadratR Documentation

Divide a region into quadrats

Description

Divide a region into quadrats

Usage

zb_quadrat(x, ncol, nrow = NULL, intersection = TRUE)

Arguments

x

x

ncol

ncol

nrow

nrow

intersection

intersection

Value

An sf object

Examples

x = london_a()
c = sf::st_centroid(london_a())
plot(zb_quadrat(x, ncol = 2), col = 2:5)
plot(c, add = TRUE, col = "white")
plot(zb_quadrat(x, ncol = 3))
plot(zb_quadrat(x, ncol = 4))
plot(zb_quadrat(x, ncol = 4, intersection = FALSE))

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