circle function

Plot circles of a specified radius

Plot circles of a specified radius

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

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.

Returns

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))
  • Maintainer: Lauri Mehtatalo
  • License: GPL-2
  • Last published: 2022-04-29

Useful links