Say have a linear model LM that I want a qq plot of the residuals. Normally I would use the R base graphics:
qqnorm(residuals(LM), ylab=\"Residuals\") qqline
ggplot2 v.3.0.0 now has an qqline stat. From the help page:
df <- data.frame(y = rt(200, df = 5)) p <- ggplot(df, aes(sample = y)) p + stat_qq() + stat_qq_line()
!ggplot2 v3.0.0 Example stats equivalent to qqnorm plus abline]1