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