qq_plot: Quantile-Quantile Plots

Description Usage Arguments Examples

View source: R/plots.R

Description

Produce standard quantile-quantile plots for modeling using ggplot2.

Usage

1
2
3
4
5
6
7
8
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

1
2
3
4
5
6
n <- 100
x1 <- rnorm(n)
y1 <- rnorm(n)
linmod <- lm(y1 ~ x1)
x <- linmod$residuals
qq_plot(x)

nima documentation built on March 13, 2020, 2:10 a.m.

Related to qq_plot in nima...