qq_plot {nima} | R Documentation |
Quantile-Quantile Plots
Description
Produce standard quantile-quantile plots for modeling using ggplot2.
Usage
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. |
distribution |
The reference probability distribution for residuals. |
... |
Any additional parameters to be passed to distribution functions. |
line.estimate |
Should quantiles be estimated, if so which quantiles? |
conf |
The confidence level to be used with confidence intervals. |
labels |
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)
[Package nima version 0.6.2 Index]