| plot_best_models {autohrf} | R Documentation | 
plot_best_models
Description
Plots the best fitted model for each of the specs in autohrf.
Usage
plot_best_models(autofit, ncol = NULL, nrow = NULL)
Arguments
| autofit | Output of the autohrf function. | 
| ncol | Number of columns in the plot. | 
| nrow | Number of rows in the plot. | 
Value
Plots the grid containing a visualization of the best models for each of the provided constraints.
Examples
# 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)
[Package autohrf version 1.1.3 Index]