ellipse: Draw an ellipse

View source: R/ellipse.R

ellipseR Documentation

Draw an ellipse

Description

Draw an ellipse

Usage

ellipse(x, y, width, height = width, theta = 0, npoints = 10, plot = FALSE)

Arguments

x

Center x coordinate of ellipse.

y

Center y coordinate of ellipse.

width

Width of ellipse.

height

Length of ellipse.

theta

Angle/heading.

npoints

Number of vertices to use to define the ellipse boundary.

plot

Boolean; print a diagnostic plot?

Value

A list with three slots: coords (a data.frame of coordinates defining ellipse boundary), center (the x and y inputs), and theta (the input angle).


ericmkeen/shipstrike documentation built on May 21, 2023, 7:05 a.m.