Learn R Programming

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

Momocs (version 0.2-03)

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-03

License

GPL (>= 2)

Maintainer

Vincent Bonhomme

Last Published

February 26th, 2013

Functions in Momocs (0.2-03)

A.plot

Plots an array of homologous coordinates, typically landmarks.
coo.perim

Calculates the perimeter of a list or matrix of coordinates.
ef.amplify

Dilates shapes based on elliptical Fourier decomposition.
Ptolemy

Ptolemaic ellipses and illustration of eFourier
coo.draw

Adds a single outline on the current plot.
coo.sample.rr

Samples points with "equally spaced" angles.
coo.perim.pts

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

Exports Coe objects to .nef files.
dataset: hearts

hearts dataset
coo.slide

"Slides" a list or a matrix of coordinates.
coo.trans

Transles a list or a matrix of coordinates.
cooLandmarks(Coo)

Retrieves landmarks coordinates from a Coo object.
chc2pix

Converts chain-coded coordinates to a matrix of coordinates.
Class: Coe

Class "Coe"
coo.center

Centers a list or matrix of coordinates.
coo.baseline

Re-register a list or matrix of coordinates.
edm

Calculates euclidean distance every pairs of points in two matrices.
m2l

Convert a matrix of coordinates to a list of coordinates.
hquant

Calculates deviations between reconstructed and best possible shapes using different distance methods.
coo.oscillo

Momocs' "oscilloscope" for periodic functions.
import.txt

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

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

Rotates a list or matrix of coordinates.
nef2Coe

Imports .nef files and creates Coe objects.
coeff.split

Converts a numerical description of harmonic coefficients to a named list.
dataset: bot

bot dataset
meanShapes

Calculate groups mean shapes from Coe
a2l

Converts an array of coordinates to a list.
PC.contrib

Shape variation along PC axis
efourier.norm

Normalizes harmonic coefficients.
coo.rotate.center

Rotates a list or matrix of coordinates with any center of symmetry.
diapo(Coo)

Plots a slideshow of each outline in a Coo object.
coo.sample

Samples points along the curvilinear abscissa.
coo.centsize

Calculates the centroid size of a list or matrix of coordinates.
hpow

Calculates harmonic power.
coo.align

Aligns a list or matrix of coordinates.
pca

A wrapper for dudi.pca on Coe-objects.
is.closed

Tests if a list or matrix of coordinates is closed.
l2a

Converts a list of coordinates to an array.
edm.nearest

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

Helps to select a given number of harmonics from a numerical vector.
ellipse.par

Calculate ellipse parameters on a Coe-class object.
coo.ldk

Utility to identify landmarks on a matrix or list of coordinates.
A.points

Plots the points that corresponds to landmarks provided as an array.
A.mshape

Calculates the mean shape of an array of landmarks.
efourier

Calculates elliptical Fourier analysis.
coo.force2close

Forces a list or matrix or coordinates to close.
coo.close

Closes a list or matrix of coordinates.
coo.smooth

Smoothes list and matrices of coordinates.
efourier.i

Calculates inverse elliptical Fourier analysis.
ellpar

Calculate ellipse parameters.
import.jpg

Everything to convert images to a list of coordinates.
coo.unclose

Uncloses a list or matrix of coordinates.
dataset: trilo

trilo dataset
dev.plot

Calculates and plots series with associated error bars.
Coo2chc

Exports Coo objects to .chc files that can be used in SHAPE.
morpho.space

Calculate and plots morphological spaces.
edi

Calculates euclidean intermediate between two points.
panel(Coo)

Displays a one-page plot of a Coo-object.
A.segments

Utilities to manipulate arrays of homologous coordinates, typically landmarks.
tFourier

Calculates tangent angle analysis on Coo objects.
efourier.shape

Calculates and draw "efourier" shapes.
defLandmarks

Define landmarks on a Coo object
Class: Coo

Class "Coo"
baseline(Coo)

Re-register a Coo on a new baseline.
tfourier.shape

Calculates and draw "tfourier" shapes.
smooth.qual

Displays effect of smoothing on shape reconstruction.
dudi.plot

A wrapper for dudi.pca graphical functions.
rfourier

Calculates radii variation Fourier analysis.
procGPAlign(Coo)

Performs a Generalized Procrustes Alignement on a Coo object.
rfourier.shape

Calculates and draw "rfourier" shapes.
tfourier.i

Calculates inverse tangent angle Fourier analysis.
stack(Coo)

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

Thin Plate Splines for 2D data.
coo.template

"Templates" list and matrix of coordinates.
harm.pow

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

Draws colored segments from a matrix of coordinates.
coo.list.panel

Plots sets of shapes.
hqual

Displays how shapes are described with a given number of harmonics.
manova.Coe

Multivariate ANOVA on Coe objects
tps.arr

Deformation "vector field" using Thin Plate Splines.
vecs.param

Some vector utilities.
pix2chc

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

Some color palettes.
coo.sample.int

Given an outline, interpolates points along the curvilinear abscissa.
Momocs Package

Outline Analysis using R.
coo.scale

Scales a list or matrix of coordinates.
chc2Coo

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

mosquito dataset
l2m

Converts a list of coordinates to a matrix.
hcontrib

Calculates and displays the contribution of every harmonic.
tps.iso

Deformation isolines using Thin Plate Splines.
pca2shp

From a factorial map to a shape.
ed

Calculates euclidean distance between two points.
rfourier.i

Calculates inverse radii variation analysis.
tps.grid

Deformation grids using Thin Plate Splines.
coo.plot

Plots a single outline.