circle: Plot circles of a specified radius

View source: R/lmfor.R

circleR Documentation

Plot circles of a specified radius

Description

Adds circles of radii r at coordinates specified by x and y onto an existing plot.

Usage

circle(x,y,r,border="black",lty="solid",lwd=1,fill=NULL)

Arguments

x,y,r

Vectors of the x- and y- coordinates of the midpoints and the associated radii. Vectors x, y and r should be of the same length

border, lty, lwd

the draving color, line type and line width of the perimeter line. Use border=NA to omit the perimeter.

fill

The color used to fill the circles. fill=NULL does not fill at all.

Value

This function is used for its side effects on the graphical display.

Author(s)

Lauri Mehtatalo <lauri.mehtatalo@uef.fi>

Examples

plot(0,type="n",xlim=c(-2,12),ylim=c(-2,12))
#Plot on average 7 tree crowns of Weibull-distributed radius at random locations
n<-rpois(1,7)
circle(x=runif(n,0,10),
       y=runif(n,0,10),
       r=rweibull(n,6,2))


lmfor documentation built on April 30, 2022, 1:08 a.m.