polygon: Draw a styled polygon on a plot

Description Usage Arguments Examples

View source: R/RcssWrappers.R

Description

This is a wrapper for R's polygon function. See R's documentation for graphics::polygon for further details.

Usage

1
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

1
2
3
# 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")

tkonopka/Rcssplot documentation built on Jan. 21, 2021, 11:36 p.m.