Draw quantile-Quantile plots of a sample against a theoretical distribution, possibly conditioned on other variables.

# S3 method for zoo
qqmath(x, data = NULL, xlab = "Theoretical quantiles",
  ylab = "Sample quantiles", ref = TRUE, ci = TRUE, ...)

Arguments

x

A zoo object

data

Ignored

xlab

X axis label

ylab

Y axis label

ref

Plot a reference line via lattice::panel.qqmathline().

ci

Plot confidence levels via panel.qqmathci().

...

Parameters to pass on to lattice::qqmath().

Value

Plots and returns a trellis object.

See also

Examples

if (require(zoo)) qqmath(zoo(lh))
#> Loading required package: zoo
#> #> Attaching package: ‘zoo’
#> The following objects are masked from ‘package:base’: #> #> as.Date, as.Date.numeric