vis.paths.along.verts: Visualize several paths in different colors.

View source: R/helpers.R

vis.paths.along.vertsR 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.


fsbrain documentation built on July 9, 2023, 7:12 p.m.