Learn R Programming

caroline (version 0.9.9)

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

Value

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

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.

Examples

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

Run the code above in your browser using DataLab