drawCircle: Draws a circle

drawCircleR Documentation

Draws a circle

Description

Draws a circle in data coordinates, so it will be a circle if the aspect ratio of the plot is 1, or else it will be appear as an ellipse.

Usage

drawCircle(x, y, radius, nv = 100, border = NULL, col = NA, lty = 1, lwd = 1)

Arguments

x

x-coordinate of circle center

y

y-coordinate of circle center

radius

radius of circle

nv

how many plotted segments

border

polygon border

col

line color

lty

line type

lwd

line width

Details

This function is useful to display a representative circle with the specified radius on a plot of revisits.

Value

invisibly, the x and y points of the drawn circle

Author(s)

Chloe Bracis <cbracis@uw.edu>

See Also

plot.recurse

Examples

data(martin)
revisits = getRecursions(martin, radius = 1)
plot(revisits, martin, legendPos = c(10, -15))
drawCircle(10, -10, 1)


recurse documentation built on Sept. 11, 2024, 6:59 p.m.