SWAP.PlotKTSP.TrainTestROC: Plots an ROC curve for training and testing results.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/exportedFuncs.R

Description

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

Usage

1
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

 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)

switchBox documentation built on Nov. 8, 2020, 5:43 p.m.