vis.paths.along.verts {fsbrain}R Documentation

Visualize several paths in different colors.

Description

Visualize several paths in different colors.

Usage

vis.paths.along.verts(
  surface_vertices,
  paths,
  color = viridis::viridis(length(paths))
)

Arguments

surface_vertices

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.

paths

list of positive integer vectors, the vertex indices of the paths

color

a color string, like '#FF0000' to color the path.


[Package fsbrain version 0.5.5 Index]