Learn R Programming

⚠️There's a newer version (1.4.1) of this package.Take me there.

Momocs (version 0.2-6)

Shape Analysis of Outlines

Description

Momocs is intended to ease and popularize shape analysis of outlines (especially using elliptical Fourier analysis). It mostly hinges on the functions developed in Morphometrics with R (Claude, 2008). From outline extraction of images and elliptical Fourier calculation to multivariate analysis and the visualization of transformations within the morphological space, Momocs provides a complete and convenient toolkit to specialists within every field that are, or may be, interested in morphological comparisons of outlines.

Copy Link

Version

Install

install.packages('Momocs')

Monthly Downloads

653

Version

0.2-6

License

GPL (>= 2)

Maintainer

Vincent Bonhomme

Last Published

March 7th, 2014

Functions in Momocs (0.2-6)

coo.centsize

Calculates the centroid size of a list or matrix of coordinates.
Momocs Package

Outline Analysis using R.
diapo(Coo)

Plots a slideshow of each outline in a Coo object.
Color palettes

Some color palettes.
manova.Coe

Multivariate ANOVA on Coe objects
A.segments

Utilities to manipulate arrays of homologous coordinates, typically landmarks.
cooLandmarks(Coo)

Retrieves landmarks coordinates from a Coo object.
efourier.i

Calculates inverse elliptical Fourier analysis.
coo.rotate

Rotates a list or matrix of coordinates.
edm

Calculates euclidean distance every pairs of points in two matrices.
coo.template

"Templates" list and matrix of coordinates.
pca2shp

From a factorial map to a shape.
ed

Calculates euclidean distance between two points.
coo.list.panel

Plots sets of shapes.
chc2pix

Converts chain-coded coordinates to a matrix of coordinates.
dataset: bot

bot dataset
coo.trans

Transles a list or a matrix of coordinates.
rfourier

Calculates radii variation Fourier analysis.
import.txt

Everything to convert .txt files to a list of coordinates.
coo.slide

"Slides" a list or a matrix of coordinates.
A.mshape

Calculates the mean shape of an array of landmarks.
Coo2chc

Exports Coo objects to .chc files that can be used in SHAPE.
coo.rotate.center

Rotates a list or matrix of coordinates with any center of symmetry.
hqual

Displays how shapes are described with a given number of harmonics.
coeff.sel

Helps to select a given number of harmonics from a numerical vector.
stack(Coo)

Plots all the outlines from a Coo on the same graph.
nef2Coe

Imports .nef files and creates Coe objects.
Coe2nef

Exports Coe objects to .nef files.
defLandmarks

Define landmarks on a Coo object
dev.segments

Draws colored segments from a matrix of coordinates.
coo.draw

Adds a single outline on the current plot.
baseline(Coo)

Re-register a Coo on a new baseline.
dataset: trilo

trilo dataset
dataset: hearts

hearts dataset
smooth.qual

Displays effect of smoothing on shape reconstruction.
dataset: mosquito

mosquito dataset
Class: Coe

Class "Coe"
tps2d

Thin Plate Splines for 2D data.
coo.centpos

Calculates the position of the centroid of a list or a matrix of coordinates.
coo.align

Aligns a list or matrix of coordinates.
coo.baseline

Re-register a list or matrix of coordinates.
l2a

Converts a list of coordinates to an array.
coo.perim.pts

Calculates the euclidean distance between points of a list or matrix of coordinates.
tps.grid

Deformation grids using Thin Plate Splines.
coo.smooth

Smoothes list and matrices of coordinates.
coo.ldk

Utility to identify landmarks on a matrix or list of coordinates.
coo.sample.int

Given an outline, interpolates points along the curvilinear abscissa.
a2l

Converts an array of coordinates to a list.
l2m

Converts a list of coordinates to a matrix.
coo.close

Closes a list or matrix of coordinates.
coo.center

Centers a list or matrix of coordinates.
is.closed

Tests if a list or matrix of coordinates is closed.
tps.arr

Deformation "vector field" using Thin Plate Splines.
m2l

Convert a matrix of coordinates to a list of coordinates.
coo.sample

Samples points along the curvilinear abscissa.
coo.perim

Calculates the perimeter of a list or matrix of coordinates.
coo.force2close

Forces a list or matrix or coordinates to close.
hcontrib

Calculates and displays the contribution of every harmonic.
coo.oscillo

Momocs' "oscilloscope" for periodic functions.
A.points

Plots the points that corresponds to landmarks provided as an array.
dudi.plot

A wrapper for dudi.pca graphical functions.
PC.contrib

Shape variation along PC axis
morpho.space

Calculate and plots morphological spaces.
efourier.norm

Normalizes harmonic coefficients.
eFourier

Calculates elliptical Fourier analysis on Coo objects.
A.plot

Plots an array of homologous coordinates, typically landmarks.
Ptolemy

Ptolemaic ellipses and illustration of eFourier
rfourier.i

Calculates inverse radii variation analysis.
panel(Coo)

Displays a one-page plot of a Coo-object.
ellipse.par

Calculate ellipse parameters on a Coe-class object.
meanShapes

Calculate groups mean shapes from Coe
edi

Calculates euclidean intermediate between two points.
pca

A wrapper for dudi.pca on Coe-objects.
hquant

Calculates deviations between reconstructed and best possible shapes using different distance methods.
tps.iso

Deformation isolines using Thin Plate Splines.
pix2chc

Converts lists and matrices of coordinates into .chc (chain-coded) files.
tfourier

Calculates tangent angle Fourier analysis.
rfourier.shape

Calculates and draw "rfourier" shapes.
ellpar

Calculate ellipse parameters.
procGPAlign(Coo)

Performs a Generalized Procrustes Alignement on a Coo object.
coo.plot

Plots a single outline.
coo.unclose

Uncloses a list or matrix of coordinates.
hpow

Calculates harmonic power.
coo.scale

Scales a list or matrix of coordinates.
tfourier.shape

Calculates and draw "tfourier" shapes.
tfourier.i

Calculates inverse tangent angle Fourier analysis.
clust

Hierarchical clustering on a matrix of coefficients
ef.amplify

Dilates shapes based on elliptical Fourier decomposition.
chc2Coo

Imports .chc files from SHAPE to Coo objects that can be used in Momocs.
Class: Coo

Class "Coo"
import.jpg

Everything to convert images to a list of coordinates.
efourier.shape

Calculates and draw "efourier" shapes.
coeff.split

Converts a numerical description of harmonic coefficients to a named list.
edm.nearest

Calculates the shortest euclidean distance found for every point of one matrix among those of a second.
vecs.param

Some vector utilities.
coo.sample.rr

Samples points with "equally spaced" angles.
harm.pow

Calculates harmonic power given a list from e/t/rfourier
dev.plot

Calculates and plots series with associated error bars.