| polygon | R Documentation | 
This is a wrapper for R's polygon function. See R's documentation for graphics::polygon for further details.
polygon(x, y = NULL, Rcss = "default", Rcssclass = NULL, ...)
| x,y | coordinates for polygon vertices | 
| Rcss | style sheet object. Leave "default" to use a style defined via RcssSetDefaultStyle() | 
| Rcssclass | character, style class | 
| ... | Further parameters, see documentation of graphics::polygon | 
# draw a multi-sided shape on an existing plot
plot(c(0, 10), c(0, 10), type="n", xlab="", ylab="")
polygon(c(1, 4, 7, 7, 1), c(1, 1, 4, 8, 8), col="blue")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.