egg.coords {egg} | R Documentation |
Returns points on the egg's surface in speherical coordinates
egg.coords(egg, type = "points", ...)
egg |
an object of class |
type |
whether to collect a series of |
... |
additional parameters passed to the |
An object of class egg.coords
containing the spherical coordinates of the selected points
## 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)