construct_arc: Construct the coordinates of an arc

Description Usage Arguments Value Examples

View source: R/plotShotchart.R

Description

Construct the coordinates of an arc

Usage

1
construct_arc(x0, y0, r, start, stop)

Arguments

x0

Center x coordinate

y0

Center y coordinate

r

Radius

start

In radians from 0 to pi

stop

In radians from 0 to pi

Value

Data frame with x, y coordinates

Examples

1
2
3
4
circle <- construct_arc(x0 = 0, y0 = 0, r = 1, start = 0, stop = 2 * pi)
plot(circle$x, circle$y, type = "l")
arc <- construct_arc(2, 1, 5, start = pi, stop = pi / 2)
plot(arc$x, arc$y, type = "l")

solmos/euroleaguer documentation built on Jan. 30, 2022, 3:16 p.m.