SWAP.PlotKTSP.TrainTestROC {switchBox}R Documentation

Plots an ROC curve for training and testing results.

Description

Given the output from SWAP.GetKTSP.TrainTestResults(), plots the training and testing ROC curves.

Usage

SWAP.PlotKTSP.TrainTestROC(result, colors=c(), legends=c(), ...)

Arguments

result

is either the output from SWAP.GetkTSPTrainTestResults, or if manually prepared, a list with items trainroc and testroc items, where each is an ROC object produced by the pROC library.

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.

Value

Produces a plot with two ROC curves corresponding to training results and testing/validation results.

Author(s)

Bahman Afsari bahman.afsari@gmail.com, Luigi Marchionni marchion@jhu.edu, Wikum Dinalankara wdinala1@jhmi.edu

References

See switchBox for the references.

See Also

SWAP.GetkTSPTrainTestResults

Examples


### 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)


[Package switchBox version 1.24.0 Index]