Learn R Programming

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

Morpho (version 2.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,495

Version

2.2

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Stefan Schlager

Last Published

December 16th, 2014

Functions in Morpho (2.2)

ProcGPA

Workhorse function for procSym, responsible for Procrustes registration
fixLMmirror

estimate missing landmarks from their bilateral counterparts
icpmat

match two landmark configurations using iteratively closest point search
PCdist

correlation between a reduced space and the original space
NNshapeReg

Estimate the shape by averaging the shape of the nearest neighbours.
CVA

Canonical Variate Analysis
cutSpace

separate a 3D-pointcloud by a hyperplane
deprecated

deprecated functions of Morpho
CreateL

Create Matrices necessary for Thin-Plate Spline
invertFaces

invert faces' orientation of triangular mesh
classify

classify specimen based on between-group PCA or CVA
find.outliers

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

Landmarks and a triangular mesh
computeTransform

calculate an affine transformation matrix
anonymize

Replace ID-strings of data and associated files.
cutMeshPlane

cut a mesh by a hyperplane and remove parts above/below that plane
barycenter

calculates the barycenters for all faces of a triangular mesh
createMissingList

create a list with empty entries to be used as missingList in slider3d
colors

predefined colors for bone and skin
exVar

calculate variance of a distribution stemming from prediction models
arrMean3

calculate mean of an array
cSize

calculate Centroid Size for a landmark configuration
angle.calc

calculate angle between two vectors
deformGrid2d

visualise differences between two superimposed sets of 2D landmarks
plotNormals

plots the normals of a triangular surface mesh.
placePatch

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

align two 3D-pointclouds/meshes by their principal axes
closemeshKD

Project coordinates onto a target triangular surface mesh.
getTrafo4x4

get 4x4 Transformation matrix
cExtract

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

visualization of shape variation
meanMat

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

Perform PCA based of the group means' covariance matrix
lineplot

plot lines between landmarks
mesh2grey

convert a colored mesh to greyscale.
bindArr

concatenate multiple arrays/matrices
histGroup

plot histogram for multiple groups.
Morpho-package

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

Procrustes registration
mirror

mirror landmarks or triangular mesh in place
deformGrid3d

visualise differences between two superimposed sets of 3D landmarks
pls2B

Two-Block partial least square regression.
quad2trimesh

converts a mesh containing quadrangular faces into one only consisting of triangles
getTrafoRotaxis

compute a 4x4 Transformation matrix for rotation around an arbitrary axis
nose

landmarks and a triangular mesh representing a human nose
retroDeform3d

symmetrize a bilateral landmark configuration
meshcube

calculate the corners of a mesh's bouning box
points2plane

projects a 3D coordinate orthogonally onto a plane
kendalldist

Calculates the Riemannian distance between two superimposed landmark configs.
mcNNindex

find nearest neighbours for point clouds
projRead

Project points onto the closest point on a mesh
warpmovie3d

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

Export data to MorphoJ and Morphologika
name2factor

extract data from array names
qqmat

Q-Q plot to assess normality of data
permuvec

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

Assess differences in amount and direction of asymmetric variation
read.lmdta

read dta files
plotAtlas

visualize an atlas defined by createAtlas
readallTPS

Import landmarks and outlines from TPS files
rotonmat

rotate matrix of landmarks
solutionSpace

returns the solution space (basis and translation vector) for an equation system
mesh2obj

export mesh objects to disk
vecx

convert an 3D array into a matrix and back
rotonto

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

estimate missing landmarks
regdist

correlation between shape space and tangent space
read.pts

reads pts files
typprob

calculate typicality probabilities
relaxLM

relax one specific landmark configuration against a reference
mergeMeshes

merge multiple triangular meshes into a single one
symmetrize

create a perfectly symmetric version of landmarks
readLandmarks.csv

import landmark data from csv files
CAC

calculate common allometric component
rotaxisMat

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

calulate regression scores for linear model
applyTransform

apply affine transformation to data
slider3d

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

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

calculate average edge length of a triangular mesh
covDist

calculates distances and PC-coordinates of covariance matrices
permudist

performs permutation testing for group differences.
render.matrixDist

plot or save the results of meshDist
predictShape.lm

Predict shapes based on linear models calculated from PCscores
covW

calculate the pooled within groups covariance matrix
tps3d

thin plate spline mapping
updateNormals

Compute face or vertex normals of a triangular mesh
proc.weight

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

calculate relative Warp analysis
warp.mesh

warping a mesh onto another configuration
meshDist.matrix

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

symmetrize a triangular mesh
crossProduct

calculate the orthogonal complement of a 3D-vector
procAOVsym

Procrustes ANOVA for structures with object symmetry
rotmesh.onto

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

Create an atlas needed in placePatch
unrefVertex

some little helpers for vertex operations on triangular meshes
read.csv.folder

batch import data from files
read.mpp

Read saved pick-points from meshlab
meshPlaneIntersect

get intersections between mesh and a plane
showPC

convert PCs to landmark configuration
scalemesh

scale a mesh of class "mesh3d"
file2mesh

Import 3D surface mesh files
rotaxis3d

Rotate an object (matrix or mesh) around an arbitrary axis in 3D
write.pts

exports a matrix containing landmarks into .pts format
checkLM

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

find indices of faces that contain specified vertices