Description Usage Arguments Value Examples
Returns points on the egg's surface in speherical coordinates
1 | 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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.