gg_qqplot | R Documentation |
Plot quantile-quantile plot (QQPlot) in ggplot with qqline shown.
gg_qqplot(fitted.lm, scale.factor = 1)
fitted.lm |
a fitted linear model (i.e. lm, glm) that contains fitted regression |
scale.factor |
numeric; scales the point size and linewidth to allow customized viewing. Defaults to 1. |
A qqplot with fitted qqline
library(MASS)
data(Cars93)
cars_lm <- lm(Price ~ Passengers + Length + RPM, data = Cars93)
gg_qqplot(cars_lm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.