plot.qlss {Qtools}R Documentation

Quantile-based Summary Statistics for Location, Scale and Shape

Description

This function plots location, scale and shape of a conditional distribution.

Usage

## S3 method for class 'qlss'
plot(x, z, whichp = NULL, interval = FALSE, type = "l", ...)

Arguments

x

an object of class qlss as returned by qlss.formula.

z

numeric vector of values against which LSS measures are plotted. This argument is required.

whichp

when probs in qlss is a vector, the argument whichp specifies one of the probabilities (and one only) in probs that should be used for plotting. If whichp = NULL (default), the first value in probs is used.

interval

logical flag. If TRUE, confidence intervals for the predictions are plotted.

type

1-character string giving the type of plot desired. See plot.default.

...

other arguments for plot.default.

Details

This function plots a qlss object from qlss or predict.qlss.

Author(s)

Marco Geraci

See Also

qlss

Examples


trees2 <- trees[order(trees$Height),]
fit <- qlss(Volume ~ Height, data = trees2, probs = c(.05, .1))
# Plot the results for probs = 0.1
plot(fit, z = trees2$Height, whichp = 0.1, xlab = "height")


[Package Qtools version 1.5.9 Index]