Produce standard quantile-quantile plots for modeling using ggplot2.

qq_plot(x, distribution = "norm", ..., line.estimate = NULL,
conf = 0.95, labels = names(x))

## Arguments

x A numeric vector of residuals from a generalized linear model. The reference probability distribution for residuals. Any additional parameters to be passed to distribution functions. Should quantiles be estimated, if so which quantiles? The confidence level to be used with confidence intervals. The names to be used when identifying points on the Q-Q plot.

## Examples

n <- 100
x1 <- rnorm(n)
y1 <- rnorm(n)
linmod <- lm(y1 ~ x1)
x <- linmod\$residuals
qq_plot(x)#