Learn R Programming

autohrf (version 1.1.3)

plot_model: plot_model

Description

Plots a manually constructed model.

Usage

plot_model(
  model_evaluation,
  by_roi = FALSE,
  ncol = NULL,
  nrow = NULL,
  scales = "free_y",
  rois = NULL
)

Value

A ggplot visualization of the model.

Arguments

model_evaluation

The output from the evaluate_model function.

by_roi

Whether to plot the fit for each ROI independently.

ncol

Number of columns in the facet wrap.

nrow

Number of rows in the facet wrap.

scales

Whether to free certain axes of the facet wrap.

rois

A subset of ROIs to visualize.

Examples

Run this code
# prepare model specs
model3 <- data.frame(event      = c("encoding", "delay", "response"),
                     start_time = c(0,           2.65,    12.5),
                     duration   = c(2.65,        9.85,    3))


Run the code above in your browser using DataLab