Skip to content

Commit 32e70fc

Browse files
authored
Merge pull request #26 from mthulin/master
Fix bug in QQ-plots created using lineup_residuals()
2 parents 3df528a + 9992dee commit 32e70fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/quick_plots.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ lineup_residuals <- function(model, type = 1, method = "rotate", color_points =
9898
if(type == 2) {
9999
if(method != "pboot") { warning(paste0("Method \"", method, "\" does not generate normal residuals. Using method = \"pboot\" instead."))}
100100
p <- ggplot(lineup(null_lm(formula(model), method = "pboot", additional = TRUE), model.reg)) +
101-
geom_qq_line(aes(sample = .data$.resid), colour = color_lines) +
101+
geom_qq_line(aes(sample = .data$.stdresid), colour = color_lines) +
102102
geom_qq(aes(sample = .data$.stdresid), alpha = alpha_points, color = color_points) +
103103
facet_wrap(~ .data$.sample) +
104104
labs(x = "Theoretical quantiles", y = "Standardized residuals", title = "Normal Q-Q plot")

0 commit comments

Comments
 (0)