Skip to contents

This function calculates the y-axis position for text labels in a ggplot based on the levels of a factor. It is specifically designed for use with ROC curve plotting.

Usage

get_label_y_position(data_auc)

Arguments

data_auc

Data frame with AUC values and factor levels.

Value

A modified data frame with an additional column pos_y representing y-axis positions.