polygon: Polygon

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

An alternative interface to the graphics::polygon function

Usage

1
2
3
4
5
6
7
8
9
polygon(
  x,
  ...,
  border = colour,
  colour = color,
  color = NULL,
  col = fill,
  fill = NULL
)

Arguments

x

as for graphics::polygon

...

additional arguments sent to graphics::polygon

border, colour, color

alternative argument names for the border

col, fill

alternative argument names for the fill colour

Value

as for graphics::polygon

Examples

1
2
3
4
5
6
7
8
set.seed(1234)
z <- complex(,runif(50), rnorm(50))
oz <- ojaMedian(z)
z <- z[order(Arg(z - oz))]
plot(z, type = "n", axes = FALSE, ann = FALSE)
polygon(z, fill = "sandy brown", colour = "grey")
points(oz, pch=3, cex = 2)
segments(oz, z, lwd = 0.5)

BillVenables/WWRGraphics documentation built on Feb. 1, 2021, 12:13 p.m.