powered by
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 )
returns invisible vector containing rgl.id of rendered objects.
rgl.id
object of class atlas created by createAtlas.
createAtlas
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.
point="s"
pt.size
point="p"
size
point3d
value between 0 and 1. Sets transparency of mesh 1=opaque 0= fully transparent.
if render="w", a wireframe will be drawn, if render="s", the mesh will be shaded.
render="w"
render="s"
how to render landmarks. "s"=spheres, "p"=points.
color to render the atlas mesh
logical: if TRUE, a new rgl window is opened.
logical: request plot of legend specifying landmark coloring.
vector containing colors for each coordinate type cols[1]=landmarks, cols[2]=patch, cols[3]=corrCurves, cols[4]=patchCurves.
If legend=TRUE, a plot with a legend will open where coloring of the 3D-spheres is specified.
legend=TRUE
placePatch, createAtlas
data(nose) atlas <- createAtlas(shortnose.mesh, landmarks = shortnose.lm[c(1:5,20:21),], patch=shortnose.lm[-c(1:5,20:21),]) if (FALSE) { plotAtlas(atlas) }
Run the code above in your browser using DataLab