Description Usage Arguments Value Author(s)
Function to plot, for a given nested loop cross-validation object, a given classification technique and a given number of features used for the classification, the scores plot. This plot diplays the proportion of correctly-classified per sample across all runs of the nested loop cross-validation. The class membership of the samples is displayed using a colored strip (with legend below the plot).
1 |
nlcvObj |
Object of class 'nlcv' as produced by the |
tech |
string denoting the classification technique used; one of 'dlda', 'bagg', 'pam', 'rf', or 'svm'. |
nfeat |
integer giving the number of features; this number should
be part of the initial set of number of features that was
specified during the nested loop cross-validation ( |
plot |
logical. If |
barPlot |
Should a barplot be drawn ( |
layout |
boolean indicating whether |
main |
Main title for the scores plot; if not supplied, 'Scores Plot' is used as a default |
sub |
Subtitle for the scores plot; if not supplied, the classification technique and the chosen number of features are displayed |
... |
Additional graphical parameters to pass to the plot function |
A scores plot is displayed (for the device specified).
The function invisibly returns a named vector containing (for each sample) the proportion of times the sample was correctly classified (for a given technique and a given number of features used).
Willem Talloen and Tobias Verbeke
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.