plot_funregions {movieROC} | R Documentation |
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 class 'hroc'
plot_funregions(x, FPR = 0.15, FPR2 = NULL,
plot.subsets = TRUE, new.window = FALSE, main = NULL, ylim = NULL, ...)
## S3 method for class 'groc'
plot_funregions(x, FPR = 0.15, FPR2 = NULL,
plot.subsets = TRUE, new.window = FALSE, main = NULL, ylim = NULL, ...)
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. |
Value
A plot of the transformation function used for the marker with the selected graphical parameters
Examples
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)