addPolygonBase | R Documentation |
Adds polygons to a base plot.
addPolygonBase(x, y, poly = NULL, color = "black", size = 2, scale_fct = 1)
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 |
color |
Color of the lines. |
size |
Width of the lines. |
scale_fct |
A factor with which the vertice positions are scaled. |
Output of graphics::polygon()
is directly plotted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.