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

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