draw.circle: draw a circle with specified attributes

Description Usage Arguments Value

Description

Adds a circle to an existing plot

Usage

1
draw.circle(k=1, x0=0, y0=0, filled=FALSE, n=100, trim=0, alpha=0, ...)

Arguments

k

The radius; defaults to one

x0

Location of the center of the circle on the x axis

y0

Location of the center of the circle on the y axis

filled

If TRUE, the circle is drawn with 'polygons'; if FALSE (the default), lines is used instead

n

The number of points to place on the circumference

trim

the number of rows to remove from both the start and end of the data.frame, and thereby from the circumference of the circle as well

alpha

Angle (in degrees) by which to rotate point coordinates. Only ever sensible if 'trim' is specified

...

Any further arguments to pass to lines() or polygon(), depending on the value of the 'filled' argument (see above)

Value

plots the circle as specified; also returns a data.frame with the specified information


mjwestgate/circleplot documentation built on May 23, 2019, 1:05 a.m.