Utility function to plot pair of quantiles obtained with Pr().
Usage
plotquantiles(
x,
y,
xdomain = NULL,
alpha.f = 0.25,
col = palette(),
border = NA,
type = "n",
...
)Arguments
- x
Numeric or character: vector of x-coordinates. See
flexiplot().- y
Numeric: a matrix having as many rows as
xand an even number of columns, with one column per quantile. Typically these quantiles have been obtained withPr(), as their$quantilesvalue. This value is a three-dimensional array, and one of its columns (corresponding to the possible values of theXargument ofPr()) or one of its rows (corresponding to the possible values of theYargument ofPr()) should be selected before being used asyinput.- xdomain
Character or numeric or
NULL(default): vector of possible values of the variable represented in the x-axis, if thexargument is a character vector. The ordering of the values is respected. IfNULL, thenunique(x)is used.- alpha.f
Numeric, default 0.25: opacity of the quantile bands,
0being completely invisible and1completely opaque.- col
Fill colour of the quantile bands. Can be specified in any of the usual ways, see for instance
grDevices::col2rgb(). Default#4477AA.- border
Fill colour of the quantile bands. Can be specified in any of the usual ways, see for instance
grDevices::col2rgb(). IfNA(default), no border is drawn.- ...
Other parameters to be passed to
flexiplot().