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

plotAtlas

visualize an atlas defined by createAtlas


Description

visualize an atlas defined by createAtlas

Usage

plotAtlas(atlas, pt.size = NULL, alpha = 1, render = c("w", "s"),
  point = c("s", "p"), meshcol = "white", add = TRUE,
  legend = TRUE, cols = 2:5)

Arguments

atlas

object of class atlas created by createAtlas.

pt.size

size of plotted points/spheres. If point="s". pt.size defines the radius of the spheres. If point="p" it sets the variable size used in point3d.

alpha

value between 0 and 1. Sets transparency of mesh 1=opaque 0= fully transparent.

render

if render="w", a wireframe will be drawn, if render="s", the mesh will be shaded.

point

how to render landmarks. "s"=spheres, "p"=points.

meshcol

color to render the atlas mesh

add

logical: if TRUE, a new rgl window is opened.

legend

logical: request plot of legend specifying landmark coloring.

cols

vector containing colors for each coordinate type cols[1]=landmarks, cols[2]=patch, cols[3]=corrCurves, cols[4]=patchCurves.

Details

If legend=TRUE, a plot with a legend will open where coloring of the 3D-spheres is specified.

Value

returns invisible vector containing rgl.id of rendered objects.

See Also

Examples

data(nose)
atlas <- createAtlas(shortnose.mesh, landmarks =
           shortnose.lm[c(1:5,20:21),], patch=shortnose.lm[-c(1:5,20:21),])
## Not run: 
plotAtlas(atlas)

## 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.