ellipse | R Documentation |
Compute the coordinates of points on an ellipse
ellipse(major, minor, alpha = 0, x = 0, y = 0, n = 100)
major , minor |
length of the major and minor axis |
alpha |
angle, in trigonometric convention (from the horizontal, positive counter-clockwise, in radians). |
x , y |
coordinates of the center of the ellipse (around which the rotation is computed if alpha is not 0). |
n |
number of points to compute on the ellipse. |
plot(ellipse(10, 5), asp=1)
plot(ellipse(10, 5, alpha=pi/4), asp=1)
plot(ellipse(10, 5, alpha=pi/4, x=3, y=4, n=200), asp=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.