Learn R Programming

Boom (version 0.9.15)

circles: Draw Circles

Description

Draw circles on the current graphics device.

Usage

circles(center, radius, ...)

Value

Returns invisible NULL.

Arguments

center

A two-column matrix giving the coordinates of the circle center. If a single circle is to be drawn then a 2-element vector can be passed instead.

radius

The radii of the circles. A scalar value will be repeated if center is a matrix with more than one row.

...

Extra arguments passed to 'segments'. See par for options controlling line type, line width, color, etc.

Author

Steven L. Scott steve.the.bayesian@gmail.com

Details

Draws circles on the current graphics device. This is a low-level plotting function similar to points, lines, segments, etc.

Examples

Run this code
  plot(1:10, type = "n")
  circles(cbind(c(2, 3, 4), c(4, 5,6 )), radius = c(.3, .4, .5))

Run the code above in your browser using DataLab