plotCircle: Add one or more circles to a plot

Description Usage Arguments Value Author(s) Examples

Description

Add one or more circles to a plot

Usage

1
plotCircle(centre = c(0,0), radius = 1, ...)

Arguments

centre

xy coordinates for the centre of the circle. Can have multiple centres in the form rbind(c(x1, y1), c(x2, y2), c(x3, y3), ...). If there are multiple radii, but the centre coordinates are the same for all, only one centre is needed.

radius

the desired radius. Can specify multiple radii with c(r1, r2, r3, ...)

...

other plotting options (line type, width, color, etc).

Value

none.

Author(s)

Clark Richards

Examples

1
2
3
plot(rnorm(100), rnorm(100))
plotCircle(centre=c(0,0), radius=1, col='red')
plotCircle(centre=c(0,0), radius=1.2, lty=3)

richardsc/crMisc documentation built on May 27, 2019, 7:59 a.m.