powered by
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, ...)
coordinates for polygon vertices
style sheet object. Leave "default" to use a style defined via RcssSetDefaultStyle()
character, style class
Further parameters, see documentation of graphics::polygon
# NOT RUN { # 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") # }
Run the code above in your browser using DataLab