Learn R Programming

movieROC (version 0.1.1)

plot_funregions: Plot the transformation function used for the marker

Description

This function plots the transformation function used for the marker for an object of class ‘hroc’ or class ‘groc’ (this one is only allowed for objects with self-contained classification subsets). Over this graphic, the classification region for a particular FPR chosen by the user is displayed in blue color. If the user specifies a second FPR (FPR2), the classification region is displayed on the same graphic in red color.

Usage

# S3 method for hroc
plot_funregions(x, FPR = 0.15, FPR2 = NULL, 
  plot.subsets = TRUE, new.window = FALSE, main = NULL, ylim = NULL, ...)
# S3 method for groc
plot_funregions(x, FPR = 0.15, FPR2 = NULL, 
  plot.subsets = TRUE, new.window = FALSE, main = NULL, ylim = NULL, ...)

Value

A plot of the transformation function used for the marker with the selected graphical parameters

Arguments

x

An object of class ‘hroc’ or ‘groc’.

FPR

False-positive rate used to display the classification region in blue. Default: 0.15.

FPR2

Other false-positive rate used to display the classification region in red. Default: none.

plot.subsets

If TRUE, the classification subsets are displayed. Otherwise, only the transformation function. Default: TRUE.

new.window

If TRUE, graphics are displayed in a new window. Default: FALSE.

main

Title for the plot.

ylim

Range for the y-axis.

...

Other parameters to be passed. Not used.

Examples

Run this code
data(HCC)

hroc_cg18384097 <- hROC(X = HCC$cg18384097, D = HCC$tumor, 
    formula.lrm = "D ~ rcs(X,8)") 
plot_funregions(hroc_cg18384097)
plot_funregions(hroc_cg18384097, FPR = .1, FPR2 = .5)

Run the code above in your browser using DataLab