Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pcaplot3d

visualization of shape variation


Description

visualization of shape change

Usage

pcaplot3d(x, ...)

## S3 method for class 'symproc'
pcaplot3d(x, pcshow = c(1, 2, 3), mag = 3,
  color = 4, lwd = 1, sym = TRUE, legend = TRUE,
  type = c("spheres", "points"), ...)

## S3 method for class 'nosymproc'
pcaplot3d(x, pcshow = c(1, 2, 3), mag = 3,
  color = 4, lwd = 1, legend = TRUE, type = c("spheres", "points"),
  ...)

Arguments

x

a object derived from the function procSym calculated on 3D coordinates.

...

Additional parameters which will be passed to the methods.

pcshow

a vector containing the PCscores to be visualized.

mag

a vector or an integer containing which standard deviation of which PC has to be visualized.

color

color of the 3d points/spheres.

lwd

width of the lines representing the shape change.

sym

logical: if TRUE the symmetric component of shape is displayed. Otherwise the asymmetric one.

legend

logical: if TRUE a legend explaining the color coding of the PCs is plotted.

type

character: for type="spheres", the landmarks will be rendered using rgl's spheres3d function and for type="points" by points3d respectivly.

Details

visualization of the shape changes explained by Principal components

Value

returns an invisible array containing the shapes associated with the Principal components selected.

See Also

Examples

## Not run: 
data(boneData)
proc <- procSym(boneLM)
pcaplot3d(proc,pcshow=1:3,mag=-3)#only one PC available

## End(Not run)

Morpho

Calculations and Visualisations Related to Geometric Morphometrics

v2.8
GPL-2
Authors
Stefan Schlager [aut, cre, cph], Gregory Jefferis [ctb], Dryden Ian [cph]
Initial release
2020-02-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.