Learn R Programming

tsforecast (version 1.3.0)

tsqqplot: Quantile-Quantile Plots

Description

`tsqqplot` is a function to produce a normal QQ plot of the values in y.

Usage

tsqqplot(
  x,
  title = NULL,
  x.name = NULL,
  qq.pwidth = 0.7,
  qq.lwidth = 0.7,
  qq.col = "black",
  qqline.col = "red"
)

Value

A QQ plot of x will be displayed with no further values or objects returned.

Arguments

x

a univariate time series object or a numeric vector or matrix.

title

title of the QQ plot. Default is NULL.

x.name

name of the series. If omitted here, the series name found by tsname() will be taken over here. If tsname() is NULL, the variable name will be used instead. Default is NULL.

qq.pwidth

size of the markers in the QQ plot. Default is 0.7.

qq.lwidth

line width of the theoretical normal line in the QQ plot. Default is 0.7.

qq.col

colour of the data points in the QQ plot. Default is `black`.

qqline.col

colour of the theoretical normal line in the QQ plot. Default is `red`.

Author

Ka Yui Karl Wu

References

Switzer, P. (1976). Confidence procedures for two-sample problems. Biometrika, 63(1), 13-25. tools:::Rd_expr_doi("10.1093/biomet/63.1.13").

Examples

Run this code
tsqqplot(airport$Travellers)

Run the code above in your browser using DataLab