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 side = "right" or "left".

h

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).

C

Marker cutoff for which the graphics are displayed. Default: none.

build.process

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.

completeROC

If build.process = TRUE, a logical value indicating if the whole ROC curve should be displayed in light gray or not. Default: TRUE.

legends

If TRUE, legends with the meaning of colors are displayed. Default: FALSE.

rel.tol

Relative accuracy requested for the integrate function from stats package. Default: 0.001.

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 cex. Default: cex.lab = 1.5, cex.axis = 1.25, cex.main = 1.75.

lwd, col.roc

Line width and color for the ROC curve. Default: lwd = 2, col.roc = "blue".

col

A vector of length 2 with color used for controls and cases, respectively. Default: c("#485C99", "#8F3D52").

...

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))

[Package movieROC version 0.1.0 Index]