View source: R/core-out-efourier.R
efourier_shape | R Documentation |
efourier_shape
calculates a 'Fourier elliptical shape' given Fourier
coefficients (see Details
) or can generate some 'efourier' shapes.
Mainly intended to generate shapes and/or to understand how efourier works.
efourier_shape(an, bn, cn, dn, nb.h, nb.pts = 60, alpha = 2, plot = TRUE)
an |
|
bn |
|
cn |
|
dn |
|
nb.h |
|
nb.pts |
|
alpha |
|
plot |
|
efourier_shape
can be used by specifying nb.h
and
alpha
. The coefficients are then sampled in an uniform distribution
(-\pi ; \pi)
and this amplitude is then divided by
harmonicrank^alpha
. If alpha
is lower than 1, consecutive
coefficients will thus increase. See efourier for the mathematical
background.
A list with components:
x
vector
of x-coordinates
y
vector
of y-coordinates.
Claude, J. (2008) Morphometrics with R, Use R! series, Springer 316 pp.
Ferson S, Rohlf FJ, Koehn RK. 1985. Measuring shape variation of two-dimensional outlines. Systematic Biology 34: 59-68.
Other efourier:
efourier_i()
,
efourier()
ef <- efourier(bot[1], 24)
efourier_shape(ef$an, ef$bn, ef$cn, ef$dn) # equivalent to efourier_i(ef)
efourier_shape() # is autonomous
panel(Out(a2l(replicate(100,
efourier_shape(nb.h=6, alpha=2.5, plot=FALSE))))) # Bubble family
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.