View source: R/create-shapes.R
create_diamond | R Documentation |
x
and y
coordinates that form a diamond. This
function is a wrapper on create_rectangle()
aboveCreate a set of x
and y
coordinates that form a diamond. This
function is a wrapper on create_rectangle()
above
create_diamond(height, width, center = c(0, 0))
height |
The vertical height of the diamond |
width |
The horizontal width of the diamond |
center |
The center coordinates of the diamond |
A data frame containing the points needed to draw the specified diamond
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.