Skip to contents

points represents the vertices of a polygon as parallel x and y coordinate vectors. Most drawable subclasses expose points as a computed property; shape is the exception, where the user supplies x/y directly.

Usage

points(x = integer(0), y = integer(0))

Arguments

x

Numeric vector of x coordinates.

y

Numeric vector of y coordinates.