circle: Create data set for plotting circles

View source: R/circle.R

circleR Documentation

Create data set for plotting circles

Description

The circle function creates a data set with x and y values that can be used as coordinates to plot a circle. The arguments 'from' and 'to' can be adjust to output different quadrants of the circle.

Usage

circle(
  x = 0,
  y = 0,
  radius = 75,
  nrow_data = 100,
  from = 0,
  to = 2,
  add_center = FALSE
)

Arguments

x

The x coordinate of the center of the circle.

y

The y coordinate of the center of the circle.

radius

The radius of the circle.

nrow_data

The number of data points.

from

Start of sequence. Default = 0

to

End of sequence. E.g. End = 0.5 results in a quadrant polygon. Default = 2

add_center

Add the coordinate of the center (x,y) to the data set. Useful when creating quadrant polygons. Default = FALSE


Thonnard/VisualMWM documentation built on June 29, 2023, 11:18 a.m.