opoly_i {Momocs} | R Documentation |
Calculates shape from a polynomial model
Description
Returns a matrix of (x; y) coordinates when passed with a list obtained with opoly or npoly.
Usage
opoly_i(pol, nb.pts = 120, reregister = TRUE)
npoly_i(pol, nb.pts = 120, reregister = TRUE)
Arguments
pol |
|
nb.pts |
the number of points to predict. By default (and cannot be higher) the number of points in the original shape. |
reregister |
logical whether to reregister the shape with the original baseline. |
Value
a matrix of (x; y) coordinates.
See Also
Other polynomials:
npoly()
,
opoly()
Examples
data(olea)
o <- olea[5]
coo_plot(o)
for (i in 2:7){
x <- opoly_i(opoly(o, i))
coo_draw(x, border=col_summer(7)[i], points=FALSE) }
[Package Momocs version 1.4.1 Index]