polyVert | R Documentation |
Generate regular 2D shapes by defining the number of sides and the radius
polyVert(nsides, radius, centre = c(0, 0), angle = 0)
nsides |
number of sides/vertices |
radius |
radius of shape |
centre |
numeric vector of length 2, defining the x,y coordinates of the shape centre |
angle |
starting angle for first vertex |
dataframe of vertices bounding the shape
polyVert(5, 10)
polyVert(4, 5, centre = c(10, 1), angle = 45)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.