- PAC
vector with the PAC values of a classification,
typically the $PAC
in the return of a call to a function vcr.*.*
- feat
the PAC will be plotted versus this data
feature. Note that feat does not have to be
one of the explanatory variables of the model.
It can be another variable, a combination of
variables (like a sum or a principal component
score), the row number of the cases if they
were recorded succesively, etc.
- xlab
label for the horizontal axis, i.e. the name
of variable feat.
- xlim
limits for the horizontal axis. If NULL
, the
range of feat is used.
- main
title for the plot.
- identify
if TRUE
, left-click on a point to get its number, then ESC to exit.
- gray
logical, if TRUE
(the default) the plot region
where \(PAC < 0.5\) gets a light gray background.
Points in this region were classified into
their given class, and the points above this
region were misclassified.
- opacity
determines opacity of plotted dots.
Value between 0 and 1, where 0 is transparent
and 1 is opaque.
- squareplot
if TRUE
, the horizontal and vertical axis will
get the same length.
- plotLoess
if TRUE
, a standard loess curve is fitted and
superimposed on the plot. May not work well if
feat is discrete with few values.
At most one of the options plotLoess
,
plotErrorbars
, or plotQuantiles
can be selected.
- plotErrorBars
if TRUE
, the average PAC and its standard
error are computed on the intervals of a grid
(see option grid). Then a red curve connecting
the averages is plotted, as well as two blue
curves corresponding to the average plus or
minus one standard error. At most one of the options plotLoess
,
plotErrorbars
, or plotQuantiles
can be selected.
- plotQuantiles
if TRUE
, one or more quantiles of the PAC
are computed on the intervals of a grid
(see option grid). The quantiles correspond
the probabilities in option probs.
Then the curves connecting the quantiles
are plotted. At most one of the options plotLoess
,
plotErrorbars
, or plotQuantiles
can be selected.
- grid
only used when plotErrorBars
or plotQuantiles
are selected. This is a vector with increasing
feat values, forming the grid. If NULL
, the
grid consists of the minimum and the maximum
of feat, with 9 equispaced points between them.
- probs
only used when plotQuantiles
is selected. This
is a vector with probabilities determining the
quantiles. If NULL
, defaults to c(0.5, 0.75)
.
- cols
only used when plotquantiles is selected.
A vector with the colors of the quantile curves.
If NULL
the cols are taken as 2, 3, ...
- fac
only used when plotLoess
, plotErrorBars
or
plotQuantiles
are selected. A real number to
multiply the resulting curves. A value fac > 1
can be useful to better visualize the curves
when they would be too close to zero.
By default (fac = 1
) this is not done.
- cex
passed on to plot
.
- cex.main
same, for title.
- cex.lab
same, for labels on horizontal and vertical axes.
- cex.axis
same, for axes.
- pch
plot character for the points, defaults to 19.