From b5461179cbf5b481ba51d8935f67788256d2995d Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 16 Mar 2024 11:36:44 +0100 Subject: [PATCH] fix --- R/plot.performance_simres.R | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/R/plot.performance_simres.R b/R/plot.performance_simres.R index bb5b93a5a..afb16ce39 100644 --- a/R/plot.performance_simres.R +++ b/R/plot.performance_simres.R @@ -45,6 +45,11 @@ plot.see_performance_simres <- function(x, # need DHARMa to be installed insight::check_if_installed("DHARMa") + # extract data, if from check_residuals + if (inherits(x, "see_check_residuals")) { + x <- attributes(x)$data + } + if (is.null(transform)) { res <- stats::residuals(x) } else {