Learn R Programming

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

Morpho (version 2.0.2)

Calculations and visualisations related to Geometric Morphometrics

Description

A toolset for Geometric Morphometrics and mesh processing. This includes (among other stuff) mesh deformations based on reference points, permutation tests, detection of outliers, processing of sliding semi-landmarks and semi-automated surface landmark placement.

Copy Link

Version

Install

install.packages('Morpho')

Monthly Downloads

1,790

Version

2.0.2

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Stefan Schlager

Last Published

February 24th, 2014

Functions in Morpho (2.0.2)

asymPermute

Assess differences in amount and direction of asymmetric variation
name2factor

extract data from array names
predictShape.lm

Predict shapes based on linear models calculated from PCscores
mesh2grey

convert a colored mesh to greyscale.
CreateL

Create Matrices necessary for Thin-Plate Spline
rotonmat

rotate matrix of landmarks
deprecated

deprecated functions of Morpho
mergeMeshes

merge multiple triangular meshes into a single one
NNshapeReg

Estimate the shape by averaging the shape of the nearest neighbours.
read.csv.folder

batch import data from files
covW

calculate the pooled within groups covariance matrix
anonymize

Replace ID-strings of data and associated files.
barycenter

calculates the barycenters for all faces of a triangular mesh
closemeshKD

Project coordinates onto a target triangular surface mesh.
arrMean3

calculate mean of an array
qqmat

Q-Q plot to assess normality of data
lineplot

plot lines between landmarks
covDist

calculates distances and PC-coordinates of covariance matrices
Morpho-package

A toolbox providing methods for data-acquisitiopn, visualisation and statistical methods related to Geometric Morphometrics and shape analysis
meanMat

fast calculation of a Matrix' per row/ per column mean - useful for very large matrices
nose

landmarks and a triangular mesh representing a human nose
CVA

Canonical Variate Analysis
rotaxisMat

calculate a rotation matrix around an arbitrary axis through the origin in 3D
cSize

calculate Centroid Size for a landmark configuration
file2mesh

Import 3D surface mesh files
mcNNindex

find nearest neighbours for point clouds
createAtlas

Create an atlas needed in placePatch
RegScore

calulate regression scores for linear model
deformGrid3d

visualise differences between two superimposed sets of 3D landmarks
angle.calc

calculate angle between two vectors
pls2B

Two-Block partial least square regression.
bindArr

concatenate multiple arrays/matrices
plotAtlas

visualize an atlas defined by createAtlas
histGroup

plot histogram for multiple groups.
exVar

calculate variance of a distribution stemming from prediction models
cExtract

extract information about fixed landmarks, curves and patches from and atlas generated by "landmark"
showPC

convert PCs to landmark configuration
PCdist

correlation between a reduced space and the original space
relaxLM

relax one specific 3D landmark configuration against a reference
fixLMtps

estimate missing landmarks
groupPCA

Perform PCA based of the group means' covariance matrix
projRead

Project points onto the closest point on a mesh
placePatch

Project semi-landmarks from a predefined atlas onto all specimen in a sample
procAOVsym

Procrustes ANOVA for structures with object symmetry
fixLMmirror

estimate missing landmarks from their bilateral counterparts
readLandmarks.csv

import landmark data from csv files
readallTPS

Import landmarks and outlines from TPS files
write.pts

exports a matrix containing landmarks into .pts format
boneData

Landmarks and a triangular mesh
warpmovie3d

Creates a sequence of images showing predefined steps of warping two meshes or landmark configurations (2D and 3D) into each other
permudist

performs permutation testing for group differences.
typprob

calculate typicality probabilities
kendalldist

Calculates the Riemannian distance between two superimposed landmark configs.
procSym

Procrustes registration
vecx

convert an 3D array into a matrix and back
read.pts

reads pts files
warp.mesh

warping a mesh onto another configuration
ProcGPA

Workhorse function for procSym, responsible for Procrustes registration
read.mpp

Read saved pick-points from meshlab
updateNormals

Compute face or vertex normals of a triangular mesh
rotmesh.onto

rotate ,scale and translate a mesh based on landmark information.
meshcube

calculate the corners of a mesh's bouning box
ray2mesh

projects the vertices of a mesh along its normals onto the surface of another one.
plotNormals

plots the normals of a triangular surface mesh.
scalemesh

scale a mesh of class "mesh3d"
meshDist

calculates and visualises distances between surface meshes or 3D coordinates and a surface mesh.
unrefVertex

some little helpers for vertex operations on triangular meshes
mesh2obj

export mesh objects to disk
proc.weight

calculate weights inverse to the distances from the specified observation.
render

plot or save the results of meshDist
relWarps

calculate relative Warp analysis
tps3d

thin plate spline mapping
rotonto

rotates, translates and scales one matrix onto an other using Procrustes fitting
CAC

calculate common allometric component
pcaplot3d

visualization of shape variation
permuvec

perfom permutation testing on angles and distances between subgroups of two major groups.
rotaxis3d

Rotate an object (matrix or mesh) around an arbitrary axis in 3D
crossp

calculate the orthogonal complement of a 3D-vector
colors

predefined colors for bone and skin
regdist

correlation between shape space and tangent space
meshres

calculate average edge length of a triangular mesh
slider3d

slides Semilandmarks along curves and surfaces in 3D by minimising bending energy of a thin-plate spline deformation.
read.lmdta

read dta files
r2morphoj

Export data to MorphoJ and Morphologika
checkLM

Visually browse through a sample rendering its landmarks and corresponding surfaces.
find.outliers

Graphical interface to find outliers and/or to switch mislabeld landmarks
conv2backf

invert faces' orientation of triangular mesh