Learn R Programming

dga (version 2.0.2)

ellipse: A Helper Function Used by Venn4 to Define the Perimeter of an Ellipse

Description

Draws the ellipses used in venn4.

Usage

ellipse(x, y, a, b, alpha)

Value

points that define the perimeter of an ellipse.

Arguments

x

the x coordinate of the center of the ellipse.

y

the y coordinate of the center of the ellipse.

a

the x-direction radius.

b

the y-direction radius.

alpha

the angle of rotation of the ellipse

Author

Kristian Lum kl@hrdag.org

Examples

Run this code


plot(dga:::ellipse(0, 0, .5, .2, 1))

Run the code above in your browser using DataLab