Learn R Programming

caroline (version 1.1.2)

makeEllipseCoords: 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)

Value

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

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.

Examples

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

Run the code above in your browser using DataLab