View source: R/plotShotchart.R
construct_arc | R Documentation |
Construct the coordinates of an arc
construct_arc(x0, y0, r, start, stop)
x0 |
Center x coordinate |
y0 |
Center y coordinate |
r |
Radius |
start |
In radians from 0 to pi |
stop |
In radians from 0 to pi |
Data frame with x, y coordinates
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.