View source: R/ROCplot_eumelareg.R
ROCplot_eumelareg | R Documentation |
This function plots a default EuMelaReg ROC curve using the package plotROC()
. By default Youden-Index and AUC are printed and displayed in the graph.
Additional ggplot layers can be added to the graph.
ROCplot_eumelareg(
predictions,
labels,
print.auc = TRUE,
print.cutoff = TRUE,
cutoff.method = c("youden", "closest.topleft"),
auc.label.x = 0.7,
auc.label.y = 0.1,
cutoff.label.x = 0.15,
cutoff.label.y = 0.9,
textsize = 12
)
predictions |
vector containing predicted probabilities obtained from a prediction model. |
labels |
observed labels of two outcome possibilities. Preferred are binomial values with 0 = control and 1 = case. |
print.auc |
logical value to decide whether auc should be printed within plot. Default is TRUE. |
print.cutoff |
logical value to decide whether cutoff should be printed within plot. Default is TRUE. |
cutoff.method |
method to be used to calculate cutoff. Allowed values are "youden" and "closest.topleft". |
auc.label.x |
x-coordinate of auc label. |
auc.label.y |
y-coordinate of auc label. |
cutoff.label.x |
x-coordinate of cutoff label. |
cutoff.label.y |
y-coordinate of cutoff label |
textsize |
argument to define size of axes title, axes text and plot text. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.