highlight.vertices.spheres | R Documentation |
Draw small 3D spheres at given brain mesh vertices. Supports full brain (2 meshes) as well.
highlight.vertices.spheres(surface, vertices, ...)
surface |
an fs.surface instance, see |
vertices |
vector of positive integers, the vertex indices. Values which are outside of the valid indices for the surface will be silently ignored, making it easier to work with the two hemispheres. |
... |
Parameters passed to |
This function will draw into the current window and add to the scene, so it can be called after visualizing a mesh. See the example.
Other 3d utility functions:
highlight.points.spheres()
,
vertex.coords()
## Not run:
lh_surf = subject.surface('~/data/study1', 'subject1',
surface = "white", hemi = "lh");
vis.fs.surface(lh_surf, style="semitransparent");
highlight.vertices.spheres(lh_surf,
vertices = c(3225L, 4300L, 5500L),
color = c("green", "blue", "red"));
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.