View source: R/plot_funregions.R
plot_funregions | R Documentation |
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.
## 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, ...)
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. |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.