Draw a rectangle given a matrix or dataframe of 4 x-y coordinates. The columns must have x first then y coordinates.
1 | drawrectangle(corners, add = TRUE, clr = "black", lwidth = 1)
|
add |
Logical. Whether to add elements such as points or line to an existing graph. if TRUE, there must be an appropriate existing graph, otherwise, a new graph is drawn. |
clr |
A string indicating colour. See argument col in |
lwidth |
Line width; see |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.