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, ...)
Plots and returns a trellis object.
trellis
A zoo object
zoo
Ignored
X axis label
Y axis label
Plot a reference line via lattice::panel.qqmathline().
lattice::panel.qqmathline()
Plot confidence levels via panel.qqmathci().
panel.qqmathci()
Parameters to pass on to lattice::qqmath().
lattice::qqmath()
Original by Deepayan Sarkar.
lattice::qqmath(), zoo::zoo(), lattice::panel.qqmathline().
zoo::zoo()
if (require(zoo)) qqmath(zoo(lh))
Run the code above in your browser using DataCamp Workspace