Learn R Programming

arkhe (version 1.4.0)

circle: 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.

Author

N. Frerebeau

See Also

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

Examples

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

Run the code above in your browser using DataLab