Add direct labels to a ROC plot
direct_label(
ggroc_p,
labels = NULL,
label.angle = 45,
nudge_x = 0,
nudge_y = 0,
size = 6,
...
)
A ggplot object that contains a geom_roc layer
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
angle of adjustment for the direct labels
Horizontal and vertical adjustment to nudge labels by. These can be scalars or vectors the same length as the number of labels
Size of labels
Other arguments passed to annotate