View source: R/baseline_model.R
correlation_map.baseline_model | R Documentation |
Generates a correlation heatmap of the columns in a baseline_model
's design matrix.
## S3 method for class 'baseline_model'
correlation_map(
x,
method = c("pearson", "spearman"),
half_matrix = FALSE,
absolute_limits = TRUE,
...
)
x |
A |
method |
Correlation method (e.g., "pearson", "spearman"). |
half_matrix |
Logical; if TRUE, display only the lower triangle of the matrix. |
absolute_limits |
Logical; if TRUE, set color scale limits from -1 to 1. |
... |
Additional arguments passed to internal plotting functions. |
A ggplot2 plot object.
sframe <- fmrihrf::sampling_frame(blocklens = 5, TR = 1)
bmod <- baseline_model(sframe = sframe)
if (requireNamespace("ggplot2", quietly = TRUE)) correlation_map(bmod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.