gifti_map_value: Map Values to Triangles from GIFTI

Description Usage Arguments Value

View source: R/gifti_map_value.R

Description

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

Usage

1
2
3
4
5
6
7
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


gifti documentation built on Nov. 12, 2020, 1:07 a.m.