Skip to contents

Draw a Circle

Usage

circle(x, y, radius, ..., n = 100)

Arguments

x, y

A length-one numeric vector giving the coordinates of the center of the circle.

radius

A length-one numeric vector giving the radius of the circle.

...

Further parameters to be passed to graphics::polygon().

n

A length-on integer vector specifying the number of vertices to draw the circle.

Note

For internal use only.

See also

Other graphic tools: inch2line(), label_auto(), label_percent()

Author

N. Frerebeau

Examples

if (FALSE) {
plot(NA, xlim = c(-1, 1), ylim = c(-1, 1),
     axes = FALSE, ann = FALSE, asp = 1)
circle(0, 0, 0.5)
}