makeEllipseCoords: Make Ellipse Coordinates

View source: R/plots.R

makeEllipseCoordsR Documentation

Make Ellipse Coordinates

Description

Create x & y coordinates for an ellipse from parameters. save.

Usage

makeEllipseCoords(x0 = 0, y0 = 0, b = 1, a = 1, alpha = 0, pct.range = c(0,1), len = 50)

Arguments

x0

x coordinate of center of ellipse.

y0

y coordinate of center of ellipse.

b

y axis stretch factor.

a

x axis stretch factor.

alpha

rotation factor.

pct.range

percentage of the way around the ellipse.

len

number of points used to draw ellipse.

Value

a 2 column (x and y) dataframe with coordinates for drawing an ellipse.

Examples

makeEllipseCoords(x0 = 0, y0 = 0, b = 1, a = 2, alpha = 0)

caroline documentation built on July 15, 2026, 9:06 a.m.