plot_densityROC {movieROC} | R Documentation |
Plot standard smooth ROC curve estimate
Description
This function estimates the standard ROC curve (right- or left-sided, depending on the side
of the object of class ‘groc’ included) resulting from the kernel density function estimation for controls and cases. Two graphics are displayed: left, the kernel density estimates; right, the resulting ROC curve. Two extra graphics may be shown at the bottom if the used introduces a value for the input parameter C
: left, boxplots and points for controls and cases and corresponding classification subset in gray color; right, classification subsets for every FPR until the one corresponding to the chosen C
.
Usage
plot_densityROC(obj, h = c(1, 1), C = NULL, build.process = FALSE,
completeROC = TRUE, legends = FALSE, rel.tol = 0.001,
par.specify = FALSE, cex.lab = 1.5, cex.axis = 1.25, cex.main = 1.75,
lwd = 2, col = c("#485C99", "#8F3D52"), col.roc = "blue", ...)
Arguments
obj |
An object of class ‘groc’ with |
h |
A vector of length 2 with the bandwidth used to compute kernel density estimation for controls and cases, respectively. See |
C |
Marker cutoff for which the graphics are displayed. Default: none. |
build.process |
If FALSE, the whole ROC curve is displayed; otherwise, if |
completeROC |
If |
legends |
If TRUE, legends with the meaning of colors are displayed. Default: FALSE. |
rel.tol |
Relative accuracy requested for the |
par.specify |
If FALSE, graphics are organized in one row and two columns. Default: FALSE. |
cex.lab , cex.axis , cex.main |
The magnification to be used for labels, axis annotation and main titles, respectively, relative to the current setting of |
lwd , col.roc |
Line width and color for the ROC curve. Default: |
col |
A vector of length 2 with color used for controls and cases, respectively. Default: |
... |
Other parameters to be passed. Not used. |
Value
A plot of the standard smooth ROC curve estimate with the selected graphical parameters
Examples
data(HCC)
roc_cg20202438 <- gROC(X = HCC$cg20202438, D = HCC$tumor)
plot_densityROC(roc_cg20202438)
plot_densityROC(roc_cg20202438, h = c(2,2))