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

circles

Add circles to a plot


Description

This function plots circles at given locations with given radii.

Usage

circles(x, y, r, ...)

Arguments

x

vector of x coordinates

y

vector of y coordinates

r

vactor of radii

...

additional graphic parameters will be passed through

Note

This function needs a previous plot where it adds the circles.

This function was earlier used in package tripack.

Author(s)

Albrecht Gebhardt <albrecht.gebhardt@aau.at>, Roger Bivand <roger.bivand@nhh.no>

See Also

Examples

x<-rnorm(10)
y<-rnorm(10)
r<-runif(10,0,0.5)
plot(x,y, xlim=c(-3,3), ylim=c(-3,3), pch="+")
circles(x,y,r)

interp

Interpolation Methods

v1.0-33
GPL (>= 2)
Authors
Albrecht Gebhardt [aut, cre, cph] (...), Roger Bivand [aut], David Sinclair [aut, cph]
Initial release
2020-01-07

We don't support your browser anymore

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