Skip to content

Commit

Permalink
Draft plotting simulated residuals
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Mar 15, 2024
1 parent 4736d08 commit 2bebe13
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/data_plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ add_plot_attributes <- function(x) {
obj_name <- attr(x, "object_name", exact = TRUE)
dat <- NULL

# for simulated residuals, we save all necessary information in the object
if (inherits(x, "performance_simres")) {
return(x$fittedModel)

Check warning on line 153 in R/data_plot.R

View check run for this annotation

Codecov / codecov/patch

R/data_plot.R#L153

Added line #L153 was not covered by tests
}

if (!is.null(obj_name)) {
# first try, parent frame
dat <- tryCatch(get(obj_name, envir = parent.frame()), error = function(e) NULL)
Expand Down

0 comments on commit 2bebe13

Please sign in to comment.