View source: R/gr-domesticplotters.R
Ptolemy | R Documentation |
Calculate and display Ptolemaic ellipses which illustrates intuitively the principle behing elliptical Fourier analysis.
Ptolemy(
coo,
t = seq(0, 2 * pi, length = 7)[-1],
nb.h = 3,
nb.pts = 360,
palette = col_heat,
zoom = 5/4,
legend = TRUE,
...
)
coo |
a matrix of (x; y) coordinates |
t |
A |
nb.h |
|
nb.pts |
|
palette |
a color palette |
zoom |
numeric a zoom factor for coo_plot |
legend |
|
... |
additional parameters to feed coo_plot |
a drawing on the last plot
This method has been inspired by the figures found in the followings papers. Kuhl FP, Giardina CR. 1982. Elliptic Fourier features of a closed contour. Computer Graphics and Image Processing 18: 236-258. Crampton JS. 1995. Elliptical Fourier shape analysis of fossil bivalves: some practical considerations. Lethaia 28: 179-186.
An intuitive explanation of elliptic Fourier analysis can be found in the Details section of the efourier function.
exemplifying functions
cat <- shapes[4]
Ptolemy(cat, main="An EFT cat")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.