fmri_time_series: visualization of the fMRI data (real, imaginary, magnitude,...

Description Usage Arguments Details Value Author(s) Examples

View source: R/fmri_time_series.R

Description

a visualization method, use plotly to draw the fMRI data in time series

Usage

1
fmri_time_series(fmridata, voxel_location, is.4d = TRUE, ref = NULL)

Arguments

fmridata

a 4d array which contains the spatial and temporal record of fMRI result or a single complex valued vector

voxel_location

a 3d array indicating the spatial location of the brain. If is.4d is false, set the voxel_location as NULL.

is.4d

The default is TRUE. If change to false, input a vector instead of a 4d array.

ref

The default is NULL. User can input an outside extra reference plotly object to include in the final result.

Details

The function fmri_time_series is used to create four interactive time series graphs for the real, imaginary, magnitude, and phase parts for the fMRI spacetime data. User can choose to provide the 4d array of the fMRI spacetime image and the voxel_location or a single complex valued vector, then four interactive time series graphs will be shown. Besides, the reference plotly object can be added to the final result.

Value

an interactive time series graph object created by plotly

Author(s)

SOCR team <http://socr.umich.edu/people/>

Examples

1
2
3
4
# load sample time-series data of one voxel in the brain provided by the package
sample_voxel = sample[[5]]
reference_plot = sample[[4]]
fmri_time_series(sample_voxel, voxel_location = NULL, is.4d = FALSE, ref = reference_plot)

TCIU documentation built on April 30, 2021, 5:08 p.m.