egg.coords: Get points on the egg surface

Description Usage Arguments Value Examples

Description

Returns points on the egg's surface in speherical coordinates

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## 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)

eggs documentation built on May 2, 2019, 5:23 p.m.