Visualize several paths in different colors.
vis.paths.along.verts(
surface_vertices,
paths,
color = viridis::viridis(length(paths))
)
float matrix of size (n, 3), the surface vertex coordinates, as returned as part of subject.surface
or read.fs.surface
, in the member "vertices". Can also be a freesurferformats::fs.surface
or rgl::tmesh3d
instance, in which case the coordinates are extracted automatically.
list of positive integer vectors, the vertex indices of the paths
a color string, like '#FF0000' to color the path.