makeCircleDrawer: Creates a function that draws a circle.

Description Usage Arguments See Also Examples

View source: R/contour.R

Description

Creates a function that draws a circle at given center with given diameter.

Usage

1
makeCircleDrawer(xc, yc, D, col = rgb(0, 0, 0, 0.5), ...)

Arguments

xc

X center of the circle.

yc

Y center of the circle.

D

Diameter of the circle.

col

Color that should be used.

...

Arguments that are passed to polygon.

See Also

contourf polygon

Examples

1
2
3
4
plot.new()
plot.window(c(-1.5, 1.5), c(-1.5, 1.5), asp=1)
fun <- makeCircleDrawer(0, 0, 1, 'black')
fun()

tunelipt/wutils documentation built on Nov. 5, 2019, 11:01 a.m.