Learn R Programming

Momocs (version 0.2-03)

tps.iso: Deformation isolines using Thin Plate Splines.

Description

tps.iso calculates deformations between two configurations and map them with or without isolines.

Usage

tps.iso(fr, to, amp=1, palette = col.summer,
        iso.nb = 500, iso.levels = 12, cont=TRUE, cont.col="black",
        shp = TRUE, shp.col =  rep(NA, 2), shp.border=col.gallus(2),
        shp.lwd = c(2, 2), shp.lty = c(1, 1))

Arguments

fr
The reference $(x; y)$ coordinates.
to
The target $(x; y)$ coordinates.
amp
An amplification factor of differences between fr and to.
palette
A color palette such those included in Momocs or produced with colorRampPalette.
iso.levels
numeric. The number of levels for mapping the deformations.
iso.nb
A numeric. The number of points to use for the calculation of deformation.
cont
logical. Whether to draw contour lines.
cont.col
A color for drawing the contour lines.
shp
logical. Whether to draw shapes.
shp.col
Two colors for filling the shapes.
shp.border
Two colors for drawing the borders.
shp.lwd
Two lwd for drawing shapes.
shp.lty
Two lty fro drawing the shapes.

Value

  • No returned value.

Examples

Run this code
data(bot)
botF <- eFourier(bot)
x <- meanShapes(botF, "type", nb.pts=80)
fr <- x$beer
to <- x$whisky
tps.iso(fr, to, iso.nb=2000, amp=3)

Run the code above in your browser using DataLab