plotAtlas {Morpho}R Documentation

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

placePatch, createAtlas

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)

[Package Morpho version 2.12 Index]