Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

circles

Add circles to plot


Description

Base R has a function for plotting circles called "symbols". Unfortunately, the size of the circles is inconsistent across devices. This function plots circles whose radius is specified in used coordinates.

Usage

circles(x, y, radius, bg = NULL, fg = "white", ...)

Arguments

x

centers (x coordinate)

y

centers (y coordinate)

radius

radius (in user coordinates)

bg

background colour

fg

foreground colour

...

passed to polygon, e.g. lwd

Value

none, used for side effect

Author(s)

Simon Barthelme

See Also

hough_circle


imager

Image Processing Library Based on 'CImg'

v0.42.10
LGPL-3
Authors
Simon Barthelme [aut], David Tschumperle [ctb], Jan Wijffels [ctb], Haz Edine Assemlal [ctb], Shota Ochi [cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.