addPolygonBase: Add polygons to a base plot

addPolygonBaseR Documentation

Add polygons to a base plot

Description

Adds polygons to a base plot.

Usage

addPolygonBase(x, y, poly = NULL, color = "black", size = 2, scale_fct = 1)

Arguments

x, y

Numeric vectors representing x- and y-coordinates of the vertices of the polygon.

poly

Data.frame of at least two variables named x and y representing the coordinates of the vertices of the polygon. If variable section exists multiple polygons are plotted based on the number of different groups in this variable. Overwrites x and y.

color

Color of the lines.

size

Width of the lines.

scale_fct

A factor with which the vertice positions are scaled.

Value

Output of graphics::polygon() is directly plotted.


theMILOlab/SPATA2 documentation built on Feb. 8, 2025, 11:41 p.m.