plotAtlas function

visualize an atlas defined by createAtlas

visualize an atlas defined by createAtlas

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.

Returns

returns invisible vector containing rgl.id of rendered objects.

Details

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

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)

See Also

placePatch, createAtlas

  • Maintainer: Stefan Schlager
  • License: GPL-2
  • Last published: 2023-12-06