qqplot: A QQ plot

Description Usage Arguments Value Examples

Description

Produces a QQ plot of your data with either normal or t-distributed quantiles.

Usage

1
2
qqplot(Y = NULL, X = NULL, type = "normal",
  ylabel = "Observed Values", xlabel = "Theoretical Quantiles")

Arguments

Y

A data vector to plot on the Y axis.

X

Additional data vector that will overwrite the normality quantiales that usually go on the X axis. Useful to compare distributions of different vectors.

type

The type of quantiles. Either "normal" or "t" distributed.

ylabel

The label for the x axis.

xlabel

The label for the y axis.

Value

data

A dataset containing the vectors used for the plot.

plot

A ggplot object of the plot.

Examples

1
2
3
4
5

Dynge/r_dynge documentation built on July 1, 2019, 11:21 p.m.