circle: Draw a Circle

View source: R/plot.R

circleR Documentation

Draw a Circle

Description

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.

Author(s)

N. Frerebeau

See Also

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

Examples

## Not run: 
plot(NA, xlim = c(-1, 1), ylim = c(-1, 1),
     axes = FALSE, ann = FALSE, asp = 1)
circle(0, 0, 0.5)

## End(Not run)

arkhe documentation built on Nov. 17, 2023, 5:09 p.m.