series_roi | R Documentation |
Extracts time series data from a NeuroVec
object at specified voxel coordinates
and returns it as an ROI object.
series_roi(x, i, ...)
x |
The |
i |
Numeric index for the first dimension |
... |
Additional arguments |
A ROIVec
object containing the time series data for the specified coordinates.
series
# Create a simple 4D neuroimaging vector
space <- NeuroSpace(c(10,10,10,20), c(1,1,1))
vec <- NeuroVec(array(rnorm(10*10*10*20), c(10,10,10,20)), space)
# Extract time series for first 100 voxels as ROI
roi1 <- series_roi(vec, 1:100)
# Extract time series using 3D coordinates
coords <- matrix(c(1,1,1, 2,2,2, 3,3,3), ncol=3, byrow=TRUE)
roi2 <- series_roi(vec, coords)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.