SWAP.PlotKTSP.TrainTestROC {switchBox} | R Documentation |
Given the output from SWAP.GetKTSP.TrainTestResults(), plots the training and testing ROC curves.
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.
SWAP.GetkTSPTrainTestResults
### 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)