Panel of plots to explore and visualize the response variable.
pred_diag(model)
lm
model <- lm(mpg ~ disp + hp + wt, data = mtcars) pred_diag(model)#> Error in `$<-.data.frame`(`*tmp*`, "wrapvp", value = structure(list(x = structure(0.5, class = "unit", valid.unit = 0L, unit = "npc"), y = structure(0.5, class = "unit", valid.unit = 0L, unit = "npc"), width = structure(1, class = "unit", valid.unit = 0L, unit = "npc"), height = structure(1, class = "unit", valid.unit = 0L, unit = "npc"), justification = "centre", gp = structure(list(), class = "gpar"), clip = NA, xscale = c(0, 1), yscale = c(0, 1), angle = 0, layout = NULL, layout.pos.row = c(2L, 2L), layout.pos.col = c(1L, 1L), valid.just = c(0.5, 0.5), valid.pos.row = c(2L, 2L), valid.pos.col = c(1L, 1L), name = "arrange.2-1-2-1"), .Names = c("x", "y", "width", "height", "justification", "gp", "clip", "xscale", "yscale", "angle", "layout", "layout.pos.row", "layout.pos.col", "valid.just", "valid.pos.row", "valid.pos.col", "name"), class = "viewport")): replacement has 17 rows, data has 32