Skip to contents

shape is the simplest drawable: the user supplies x and y coordinates directly, and points is computed trivially from them. It is most often produced by convert()ing a more complex drawable (e.g. a blob or twist) down to its raw vertices.

Usage

shape(x, y, ...)

Arguments

x

Numeric vector of x coordinates.

y

Numeric vector of y coordinates.

...

Arguments passed to style().