Description Usage Arguments Value Author(s) References See Also Examples
Given the output from SWAP.GetKTSP.TrainTestResults(), plots the training and testing ROC curves.
1 | SWAP.PlotKTSP.TrainTestROC(result, colors=c(), legends=c(), ...)
|
result |
is either the output from |
colors |
is a character vector indicating the color to be used for each curve. |
legends |
is a character vector providing any additional information to be appended to each curve label in the legend. |
Produces a plot with two ROC curves corresponding to training results and testing/validation results.
Bahman Afsari bahman.afsari@gmail.com, Luigi Marchionni marchion@jhu.edu, Wikum Dinalankara wdinala1@jhmi.edu
See switchBox for the references.
1 2 3 4 5 6 7 8 9 10 11 12 | ### Load gene expression data
data(trainingData)
data(testingData)
require(pROC)
### perform training and testing
result = SWAP.GetKTSP.TrainTestResults(matTraining, trainingGroup,
matTesting, testingGroup, featureNo=100)
### plot ROC curves
SWAP.PlotKTSP.TrainTestROC(result)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.