circle: Create data set for plotting circles

Description Usage Arguments

View source: R/circle.R

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

1
2
3
4
5
6
7
8
9
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 Aug. 22, 2020, 4:41 p.m.