design_map.baseline_model: Heatmap visualization of the baseline_model design matrix

View source: R/baseline_model.R

design_map.baseline_modelR Documentation

Heatmap visualization of the baseline_model design matrix

Description

Produces a heatmap of all columns in the design matrix for a baseline_model object, with rows corresponding to scans and columns corresponding to regressors. By default, it draws horizontal lines separating runs (blocks), and rotates the column labels diagonally.

Usage

design_map.baseline_model(
  x,
  block_separators = TRUE,
  rotate_x_text = TRUE,
  fill_midpoint = NULL,
  fill_limits = NULL,
  ...
)

Arguments

x

A baseline_model object.

block_separators

Logical; if TRUE, draw white horizontal lines between blocks.

rotate_x_text

Logical; if TRUE, rotate x-axis labels by 45 degrees.

fill_midpoint

Numeric or NULL; if not NULL, used as the midpoint in ggplot2::scale_fill_gradient2() to center the color scale (for example at 0).

fill_limits

Numeric vector of length 2 or NULL; passed to the fill scale limits argument. Can clip or expand the color range.

...

Additional arguments forwarded to ggplot2::geom_tile().

Value

A ggplot2 plot object.


bbuchsbaum/fmrireg documentation built on March 1, 2025, 11:20 a.m.