This function generates a Receiver Operating Characteristic (ROC) curve for the results obtained from a TockyKmeansRF function, specifically designed for two-group comparisons. It calculates the area under the curve (AUC) and its confidence interval, and returns a ggplot object depicting the ROC curve with confidence bands.
Arguments
- res_tockyrf
The output object from `TockyKmeansRF`
- expr_group
The name of the experimental group within `sampledef`.
- ctrl_group
The name of the control group within `sampledef`.
- mode
A character string specifying the type of plot to generate. Valid options are 'ROC' for a Receiver Operating Characteristic curve, and 'PR' for a Precision-Recall curve. Defaults to 'ROC'.