object: an object (preferably from the function extractProb. There should be columns for each level of the class factor and columns named obs, pred, model (e.g. "rpart", "nnet" etc), dataType (e.g. "Training", "Test" etc) and optionally objects (for giving names to objects with the same model type).
plotType: either "histogram" or "densityplot"
useObjects: a logical; should the object name (if any) be used as a conditioning variable?
...: parameters to pass to histogram or densityplot
Returns
A lattice object. Note that the plot has to be printed to be displayed (especially in a loop).
Details
If the call to extractProb included test data, these data are shown, but if unknowns were also included, these are not plotted