tetris: Calculate the tetris shape outlining a set of connected...

Description Usage Arguments Value Examples

Description

Calculate the tetris shape outlining a set of connected points.

Usage

1

Arguments

points

A data.frame or matrix with two columns, named x and y respectively.

Value

A matrix with two columns, named x and y respectively. Corresponding to the vertices points.

Examples

1
2
3
X <- data.frame(x = c(1, 1, 1, 2, 3),
                y = c(1, 2, 3, 2, 2))
tetris(X)

EmilHvitfeldt/ggtetris documentation built on May 29, 2019, 2:48 p.m.