draw_polygon: Create a polygon SVG Element

Description Usage Arguments

View source: R/draw.R

Description

A polygon defines a closed shape consisting of a set of connected straight line segments.

Usage

1
draw_polygon(x, y, fill, stroke, class)

Arguments

x, y

vectors containing the coordinates of the vertices of the polygon.

stroke

expression setting the stroke attribute.

fill

expression defining the fill attribute, which defaults to “black”.

class

expression defining the class attribute of the object.


be-pr/drawsvg documentation built on Dec. 8, 2020, 3:34 a.m.