Learn R Programming

Morpho (version 1.0-1)

deformGrid3d: visualise differences between two superimposed sets of 3D landmarks

Description

visualise differences between two superimposed sets of 3D landmarks by deforming a cubic grid based on a thin-plate spline interpolation

Usage

deformGrid3d(matrix, tarmatrix, ngrid = 10, lwd = 1, showaxis = c(1, 2),
both = T, lines = TRUE, lcol = 1, add = FALSE, col1 = 2,
col2 = 3, type = c("s", "p"))

Arguments

matrix
reference matrix containing 3D landmark coordinates.
tarmatrix
target matrix containing 3D landmark coordinates.
ngrid
number of grid lines to be plotted; ngrid=0 suppresses grid creation.
lwd
width of lines connecting landmarks.
showaxis
integer (vector): which dimensions of the grid to be plotted. Options are combinations of 1,2 and 3.
both
logical: if FALSE, only "matrix" will be plotted.
lines
logical: if TRUE, lines between landmarks will be plotted.
lcol
color of lines
add
logical: add to existing rgl window.
col1
color of "matrix"
col2
color of "tarmat"
type
"s" renders landmarks as spheres; "p" as points - much faster for very large pointclouds.

See Also

tps3d

Examples

Run this code
data(nose)deformGrid3d(shortnose.lm,longnose.lm,ngrid=10)

Run the code above in your browser using DataLab