direct_label | R Documentation |
Add direct labels to a ROC plot
direct_label(
ggroc_p,
labels = NULL,
label.angle = 45,
nudge_x = 0,
nudge_y = 0,
size = 6,
...
)
ggroc_p |
A ggplot object that contains a geom_roc layer |
labels, |
vector of labels to add directly to the plot next to the curves. If multiple curves, must be in the same order as the grouping factor. If NULL, attempts to determine labels from the ggroc_p object |
label.angle |
angle of adjustment for the direct labels |
nudge_x, nudge_y |
Horizontal and vertical adjustment to nudge labels by. These can be scalars or vectors the same length as the number of labels |
size |
Size of labels |
... |
Other arguments passed to annotate |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.