View source: R/core-out-sfourier.R
sfourier_shape | R Documentation |
sfourier_shape
calculates a 'Fourier radii variation shape' given
Fourier coefficients (see Details
) or can generate some 'sfourier'
shapes.
sfourier_shape(an, bn, nb.h, nb.pts = 80, alpha = 2, plot = TRUE)
an |
|
bn |
|
nb.h |
|
nb.pts |
|
alpha |
|
plot |
|
sfourier_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 sfourier for the mathematical
background.
A matrix of (x; y) coordinates.
Renaud S, Pale JRM, Michaux JR (2003): Adaptive latitudinal trends in the mandible shape of Apodemus wood mice. J Biogeogr 30:1617-1628.
Other sfourier:
sfourier_i()
,
sfourier()
rf <- sfourier(bot[1], 24)
sfourier_shape(rf$an, rf$bn) # equivalent to sfourier_i(rf)
sfourier_shape() # not very interesting
sfourier_shape(nb.h=12) # better
sfourier_shape(nb.h=6, alpha=0.4, nb.pts=500)
# Butterflies of the vignette' cover
panel(Out(a2l(replicate(100,
sfourier_shape(nb.h=6, alpha=0.4, nb.pts=200, plot=FALSE)))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.