Draw ellipses in a flexible way.
ellipse( x = 0, y = x, mjradi = 1, mnradi = 0.5, from = 0, to = 2 * pi, rot = 0, incr = 0.01, pie = FALSE, ... )
| x | the x coordinates of the centers of the ellipses. |
|---|---|
| y | same as |
| mjradi | the major radii of the ellipses. |
| mnradi | the minor radii of the ellipses. |
| from | the angles, expressed in radians, from which ellipses are drawn. |
| to | the angles, expressed in radians, to which ellipses are drawn. |
| rot | the rotation angles (in degree) of the ellipses. |
| incr | increments between two points to be linked (expressed in radians). |
| pie | a logical. If |
| ... | additional arguments to be passed to |
For a rotation angle of 0, major radii refer to the one along the x axis.
The number of circles drawn is given by the maximum argument length among x, y, radi, from and to arguments.
Sizes are adjusted using rep_len function.
To plot ellipses, polygon function is called.
There is a similar function, called draw.ellipse, in the package plotrix.
ellipse()