Learn R Programming

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

Morpho (version 1.0-1)

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

1.0-1

License

GPL-2

Maintainer

Stefan Schlager

Last Published

November 4th, 2013

Functions in Morpho (1.0-1)

conv2backf

invert faces' orientation of triangular mesh
ProcGPA

Workhorse function for procSym, responsible for Procrustes registration
deformGrid3d

visualise differences between two superimposed sets of 3D landmarks
checkLM

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

plots the normals of a triangular surface mesh.
barycenter

calculates the barycenters for all faces of a triangular mesh
fixLMtps

estimate missing landmarks
PCdist

correlation between a reduced space and the original space
bindArr

concatenate multiple arrays/matrices
angle.calc

calculate angle between two vectors
deprecated

deprecated functions of Morpho
readLandmarks.csv

import landmark data from csv files
nose

landmarks and a triangular mesh representing a human nose
groupPCA

Perform PCA based of the group means' covariance matrix
procSym

Procrustes registration
plotAtlas

visualize an atlas defined by createAtlas
CreateL

Create Matrices necessary for Thin-Plate Spline
qqmat

Q-Q plot to assess normality of data
exVar

calculate variance of a distribution stemming from a prediction model
relWarps

calculate relative Warp analysis
find.outliers

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

thin plate spline mapping
lineplot

plot lines between landmarks
meshcube

calculate the corners of a mesh's bouning box
pcaplot3d

visualization of shape change
warp.mesh

warping a mesh onto another configuration
proc.weight

calculate weights inverse to the distances from the specified observation.
read.mpp

Read saved pick-points from meshlab
readallTPS

Import landmarks and outlines from TPS files
kendalldist

Calculates the Riemannian distance between two superimposed landmark configs.
tanplan

calculate the orthogonal complement of a 3D-vector
showPC

convert PCs to landmark configuration
boneData

Landmarks and a triangular mesh
adnormals

Compute face or vertex normals of a triangular mesh
ply2mesh

Import 3D surface mesh files
closemeshKD

Project coordinates onto a target triangular surface mesh.
vecx

convert an 3D array into a matrix
projRead

Project points onto the closest point on a mesh
rotonto

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

calculate the pooled within groups covariance matrix
meshDist

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

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

Replace ID-strings of data and associated files.
histGroup

plot histogram for multiple groups.
colors

predefined colors for bone and skin
write.pts

exports a matrix containing landmarks into .pts format
name2factor

extract data from array names
cExtract

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

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

some little helpers for vertex operations on triangular meshes
createAtlas

Create an atlas needed in placePatch
cSize

calculate Centroid Size for a landmark configuration
predictShape.lm

Predict shapes based on linear models calculated from PCscores
mcNNindex

find nearest neighbours for point clouds
mesh2mesh

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

calculate average edge length of a triangular mesh
NNshapeReg

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

calculate distances and PC-coordinates of covariance matrices
mesh2grey

convert a colored mesh to greyscale.
CVA

Canonical Variate Analysis
rotmesh.onto

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

Procrustes ANOVA for structures with object symmetry
Morpho-package

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

Project semi-landmarks from a predefined atlas onto all specimen in a sample
read.pts

reads pts files
typprob

calculate typicality probabilities
slider3d

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

correlation between shape space and tangent space
mesh2ply

export mesh objects to disk.
rotaxis3d

Rotate an object around an arbitrary axis in 3D
render.meshDist

plot or save the results of meshDist
pls2B

Two-Block partial least square regression.
permudist

performs permutation testing for group differences.
mergeMeshes

merge multiple triangular meshes into a single one
read.lmdta

read dta files
read.csv.folder

batch import data from files
rotaxisMat

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

Export data to MorphoJ and Morphologika
rotonmat

rotate matrix of landmarks
scalemesh

scale a mesh of class "mesh3d"
relaxLM

relax one specific 3D landmark configuration against a reference