encircle: Draws circles

encircleR Documentation

Draws circles

Description

Draws circles

Usage

encircle(
  r = 1,
  x = 0,
  y = 0,
  ndiv = 360,
  plot = TRUE,
  add = TRUE,
  output = FALSE,
  ...
)

Arguments

r

the radius of the circles (of length 1 or n)

x

the x value of the centre of the circles (of length 1 or n)

y

the y value of the centre of the circles (of length 1 or n)

ndiv

the number of segments making the circles

plot

whether to plot the circles

add

whether to add to an existing plot

output

whether to return an output

...

graphical parameters to feed to lines

Value

a list of x and y matrices having n rows, one for each circle

Examples

plot(0, 0, xlim = c(-1,1), ylim = c(-1,1), asp = 1)

encircle(lwd = 2)
encircle(r = seq(0.1,0.9,0.1))


StratigrapheR documentation built on July 9, 2023, 6:02 p.m.