View source: R/neuro_surface.R
NeuroSurface | R Documentation |
This function creates a new NeuroSurface object, which represents a single set of data values associated with nodes on a surface geometry.
NeuroSurface(geometry, indices, data)
geometry |
A |
indices |
An integer vector specifying the indices of valid surface nodes. |
data |
A numeric vector of data values corresponding to the surface nodes. |
The NeuroSurface object is designed to store and manipulate a single set of data values associated with nodes on a surface. This can represent various neuroimaging measures such as cortical thickness, functional activation, or any other node-wise metric.
The length of the data
vector should match the length of the indices
vector.
Nodes not included in the indices
vector are considered to have no data or to be invalid.
A new object of class NeuroSurface
containing:
geometry |
The input |
indices |
The input integer vector of valid node indices. |
data |
The input numeric vector of data values. |
SurfaceGeometry
, NeuroSurfaceVector
# Assuming 'surf_geom' is a pre-existing SurfaceGeometry object
indices <- 1:1000 # Example indices
data_values <- rnorm(1000) # Example data
neuro_surf <- NeuroSurface(surf_geom, indices, data_values)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.