This is a basic plotting tool to visualize computed posterior
predictive estimates
of univariate conditional cdf's, see NMixPredCondCDFMarg
.
# S3 method for NMixPredCondCDFMarg
plot(x, ixcond, imargin, prob, over=FALSE,
auto.layout=TRUE, type="l", lwd=1, lty, col, qlwd=1, qlty, qcol,
main, xlab, ylab, ylim,
annot=TRUE, ...)
invisible(x)
an object of class NMixPredCondCDFMarg
.
if given then conditional cdf's of all margins given x[[icond]][ixcond]
are plotted where
icond
is taken from x
.
if given then conditional cdf's of the imargin
-th margin given all values of x[[icond]]
are plotted - either separately or all in one plot.
probabilities of pointwise posterior quantiles which
should be added to the plot. Computed values of requested posterior
quantiles must be present in the object x
(see argument
prob
of NMixPredCondCDFMarg
).
logical. If TRUE
and imargin
is given then
all conditional cdf's are drawn in one plot.
if TRUE
then the function determines itself
how to divide the plotting region to draw the computed cdf's.
type of the plot.
line width.
type of the line. It can be a vector in which case different lines are drawn in different types.
color used to draw the lines. It can be a vector in which case different lines are drawn in different colors.
line width for pointwise posterior quantiles.
type of the line for pointwise posterior quantiles.
color used to draw pointwise posterior quantiles.
main title of the plot. Either character which is replicated or a vector of characters.
label for the x-axis. Either character which is replicated or a vector of characters.
label for the y-axis. Either character which is replicated or a vector of characters.
limits for the y-axis.
if TRUE
and imargin
is given and
over
is TRUE
then a legend is added to the plot.
additional arguments passed to the plot
function.
Arnošt Komárek arnost.komarek@mff.cuni.cz
NMixPredCondCDFMarg
, NMixMCMC
.