Learn R Programming

gifti (version 0.8.0)

gifti_map_value: Map Values to Triangles from GIFTI

Description

Takes values and maps them to the correct triangles in space.

Usage

gifti_map_value(
  pointset,
  triangle,
  values,
  indices = seq(nrow(pointset)),
  add_one = TRUE
)

Arguments

pointset

pointset from GIFTI

triangle

triangles from GIFTI

values

Values to map to the triangles. Same length as indices

indices

indices to place the values, must be in the range of 1 and the number of rows of pointset

add_one

Should 1 be added to the indices for the triangle?

Value

A list of coordinates (in triangles) and the corresponding value mapped to those triangles