makeElipseCoords: Make Elipse Coordinates

View source: R/plots.R

makeElipseCoordsR Documentation

Make Elipse Coordinates

Description

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

Usage

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

Arguments

x0

x coordinate of center of elipse.

y0

y coordinate of center of elipse.

b

y axis stretch factor.

a

x axis stretch factor.

alpha

rotation factor.

pct.range

percentage of the way around the elipse.

len

number of points used to draw elipse.

Value

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

Examples

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

caroline documentation built on Nov. 9, 2023, 9:07 a.m.