Learn R Programming

transcriptR (version 1.0.2)

plotROC: plotROC

Description

Visualize the performance of the classification model fit (prediction of the gene associated peaks).

Usage

plotROC(object, ...)

## S3 method for class 'ChipDataSet': plotROC(object, ...)

Arguments

object
A ChipDataSet object.
...
Further arguments passed to plot.

Value

  • ROC plot.

Details

The plotROC is a simple wrapper for the plot function implemented in pROC package.

The https://en.wikipedia.org/wiki/Receiver_operating_characteristic{ROC} curve is created by plotting the true positive rate (sensitivity) against the false positive rate (1 - specificity) at various threshold settings. The closer the curve follows the left-hand border and then the top border of the ROC space, the more accurate the test. The area under the curve (AUC) is a measure of accuracy.

See Also

predictTssOverlap

Examples

Run this code
### Load ChipDataSet object
data(cds)

### Classify peaks on gene associated and background
predictTssOverlap(object = cds, feature = "pileup", p = 0.75)

### Visualize the performance of the model fit
plotROC(object = cds, col = "red3", grid = TRUE, auc.polygon = TRUE)

Run the code above in your browser using DataLab