Plot ROC and Precision-Recall curves for assessment results
Usage
plot_roc(
result,
plot_type = "both",
show_auc = TRUE,
show_cv = TRUE,
show_acc = TRUE,
colors = NULL,
title = NULL,
legend_position = "right"
)Arguments
- result
scClustEval result object from self_projection/sc_assessment
- plot_type
Type of plot: "both", "roc", or "prc"
- show_auc
Show AUC values on plot
- show_cv
Show cross-validation accuracy
- show_acc
Show test accuracy
- colors
Custom color palette
- title
Plot title
- legend_position
Legend position: "right", "bottom", or "none"
Examples
if (FALSE) { # \dontrun{
result <- sc_assessment(X, labels)
plot_roc(result)
plot_roc(result, plot_type = "roc")
} # }