polygon {Rcssplot} | R Documentation |
Draw a styled polygon on a plot
Description
This is a wrapper for R's polygon function. See R's documentation for graphics::polygon for further details.
Usage
polygon(x, y = NULL, Rcss = "default", Rcssclass = NULL, ...)
Arguments
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 |
Examples
# 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")
[Package Rcssplot version 1.0.0 Index]