plot.rocci | R Documentation |
This function plots receiver operating
characteristic (ROC) curve with confidence limits.
This is an S3 method for object of class
"rocci"
, returned by ciROC.rocit
function.
## S3 method for class 'rocci'
plot(
x,
col = c("#2F4F4F", "#404040"),
lty = c(1, 2),
lwd = c(2, 1),
grid = TRUE,
legend = TRUE,
legendpos = "bottomright",
... = NULL
)
x |
An object of class |
col |
Color(s) to be used for the plot. First two colors are used for the ROC curve and confidence limits if multiple colors supplied. Same color is used if single color supplied. |
lty |
The line type. Same as in |
lwd |
The line width. Same as in |
grid |
Logical, indicating whether to add rectangular grid. Calls
|
legend |
Logical, indicating whether to add legends to the plot. |
legendpos |
Position of the legend. A single keyword from
|
... |
|
ciROC
, rocit
, plot.rocit
score <- c(rnorm(300,30,15), rnorm(300,50,15))
class <- c(rep(0,300), rep(1,300))
rocit_object <- rocit(score = score, class = class, method = "bi")
rocci_object <- ciROC(rocit_object)
# ---------------------------
plot(rocci_object)
plot(rocci_object, col = c(2,4))
plot(rocci_object, col = c(2,4), legendpos = "bottom", lty = c(1,3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.