plot_best_models | R Documentation |
Plots the best fitted model for each of the specs in autohrf.
plot_best_models(autofit, ncol = NULL, nrow = NULL)
autofit |
Output of the autohrf function. |
ncol |
Number of columns in the plot. |
nrow |
Number of rows in the plot. |
Plots the grid containing a visualization of the best models for each of the provided constraints.
# prepare model specs
model3 <- data.frame(
event = c("encoding", "delay", "response"),
start_time = c(0, 2.65, 12.5),
end_time = c(3, 12.5, 16)
)
model4 <- data.frame(
event = c("fixation", "target", "delay", "response"),
start_time = c(0, 2.5, 2.65, 12.5),
end_time = c(2.5, 3, 12.5, 15.5)
)
model_constraints <- list(model3, model4)
# run autohrf
df <- flanker
autofit <- autohrf(df, model_constraints, tr = 2.5,
population = 2, iter = 2, cores = 1)
# plot best models
plot_best_models(autofit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.