Skip to contents

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.

Usage

plotTockyKmeansRF(
  res_tockyrf,
  expr_group = NULL,
  ctrl_group = NULL,
  mode = "ROC"
)

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'.

Value

A ggplot object representing the ROC curve with the area shaded for the 95 interval around the curve.

Examples

if (FALSE) { # \dontrun{
p <- plotTockyKmeansRF(res_tockyrf)
} # }