spiral_polygon | R Documentation |
Add polygons to a track
spiral_polygon(x, y, id = NULL, gp = gpar(), track_index = current_track_index())
x |
X-locations of the data points. |
y |
Y-locations of the data points. |
id |
A numeric vector used to separate locations in x and y into multiple polygons. |
gp |
Graphical parameters. |
track_index |
Index of the track. |
Note the polygon must be closed, which means, the last data point should overlap to the first one.
No value is returned.
# There is no example NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.