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.
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", ...)A plot of the standard smooth ROC curve estimate with the selected graphical parameters
An object of class ‘groc’ with side = "right" or "left".
A vector of length 2 with the bandwidth used to compute kernel density estimation for controls and cases, respectively. See adjust parameter in density() function from stats package. Default: h = c(1,1).
Marker cutoff for which the graphics are displayed. Default: none.
If FALSE, the whole ROC curve is displayed; otherwise, if completeROC = TRUE, the portion of the ROC curve until the fixed FPR (resulting from the chosen C) is highlighted in black and the rest is shown in gray. Default: FALSE.
If build.process = TRUE, a logical value indicating if the whole ROC curve should be displayed in light gray or not. Default: TRUE.
If TRUE, legends with the meaning of colors are displayed. Default: FALSE.
Relative accuracy requested for the integrate() function from stats package. Default: 0.001.
If FALSE, graphics are organized in one row and two columns. Default: FALSE.
The magnification to be used for labels, axis annotation and main titles, respectively, relative to the current setting of cex. Default: cex.lab = 1.5, cex.axis = 1.25, cex.main = 1.75.
Line width and color for the ROC curve. Default: lwd = 2, col.roc = "blue".
A vector of length 2 with color used for controls and cases, respectively. Default: c("#485C99", "#8F3D52").
Other parameters to be passed. Not used.
data(HCC)
roc_cg20202438 <- gROC(X = HCC$cg20202438, D = HCC$tumor)
plot_densityROC(roc_cg20202438)
plot_densityROC(roc_cg20202438, h = c(2,2))
Run the code above in your browser using DataLab