fcauc.comp.fptp {ROCS} | R Documentation |
Plotting two ROC curves, highlighting the segments of the curves corresponding to acceptable FDR levels.
Description
The function draws two colored ROC curves in one plot. For each curve, the segment that corresponds to acceptable FDR (e.g. <= 0.2) is colored differently than the rest of the curve.
Usage
fcauc.comp.fptp(roc.1, roc.2, FDR.cut = 0.2, lwd = 3,
colors = c("blue", "green", "cyan", "red"),
exp.labels = c("experiment 1", "experiment 2"))
Arguments
roc.1 |
A list object with three components: TP, FP and TDR, each being a vector. |
roc.2 |
A list object with three components: TP, FP and TDR, each being a vector. |
FDR.cut |
The cutoff value of FDR. |
lwd |
The line width parameter to be passed on to the function lines(). |
colors |
A vector of at least four colors. It is used for the coloring of the two ROC curves. |
exp.labels |
Experiment labels in the plot. |
Value
No value is returned.
Author(s)
Tianwei Yu. Email: tianwei.yu@emory.edu.
References
Yu T (2012) ROCS: Receiver Operating Characteristic Surface for Class-Skewed High-Throughput Data. PLoS ONE 7(7): e40598.
See Also
fcauc.fptp()
[Package ROCS version 1.4 Index]