egg.coords {egg}R Documentation

Get points on the egg surface

Description

Returns points on the egg's surface in speherical coordinates

Usage

egg.coords(egg, type = "points", ...)

Arguments

egg

an object of class egg.fit

type

whether to collect a series of points, the vertices of a polygon or a rectangular region rect

...

additional parameters passed to the lines and/or points functions

Value

An object of class egg.coords containing the spherical coordinates of the selected points

Examples

## Not run: 
# Determine egg shape
egg.image(egg)
fit = egg.fit()
egg.plot(fit, lwd = 3, col = "red")

# Interactively select a series of points
points = egg.coords(fit, type = "points", pch = 16, col = "red")

# Interactively select a polygon region
vertices = egg.coords(fit, type = "polygon", pch = 16, lwd = 3, col = "green")

# Interactively select a rectangular region
rect = egg.coords(fit, type = "rect", pch = 16, lwd = 1, col = "yellow")

## End(Not run)

[Package egg version 0.1.0 Index]