waffle: Waffle

Description Usage Arguments Value Examples

Description

Create a waffle.

Usage

1
waffle(v, ncol, xy, size)

Arguments

v

a named vector of numeric values. It indicates the number of cells for each modalities.

ncol

number of columns.

xy

coordinates of the center of the waffle.

size

size of a cell side.

Value

An sf object of polygons is returned.

Examples

1
2
3
wafcells <- c(A = 2, B = 3, C = 7, D = 6, E = 4)
mywaf <- waffle(v = wafcells, ncol = 5, xy = c(0,0), size = 2)
plot(mywaf)

rCarto/wafflemap documentation built on May 29, 2019, 2:54 p.m.