visualize_design_matrix: Visualize design matrix, including event onset times and run...

View source: R/fmri_utility_fx.R

visualize_design_matrixR Documentation

Visualize design matrix, including event onset times and run boundaries

Description

Visualize design matrix, including event onset times and run boundaries

Usage

visualize_design_matrix(
  d,
  outfile = NULL,
  run_boundaries = NULL,
  events = NULL,
  include_baseline = FALSE
)

Arguments

d

a concatenated design matrix created by build_design_matrix and passed to concat_design_runs

outfile

a filename used to export the design matrix using ggsave

run_boundaries

a named vector of positions in the time series where a run boundary occurs (used for plotting)

events

a named list of vectors containing the times of each event

include_baseline

whether to display the baseline regressors in the design.


PennStateDEPENdLab/dependlab documentation built on April 10, 2024, 5:15 p.m.