plot_ROC: ROC

View source: R/visualization.R

plot_ROCR Documentation

ROC

Description

Plot Receiver Operating Characteristic (ROC) curve for metabolites with or without covariates

Usage

plot_ROC(
  object = NULL,
  y = NULL,
  x = NULL,
  model_a = NULL,
  model_b = NULL,
  lab = NULL
)

Arguments

object

A Metabolite object.

y

A column name for the disease (0, 1)

x

One variable name (if x is provided, model_a and model_b should be NULL or vice versa).

model_a

Column names for model a (one or more covariates, as the first model).

model_b

Column names for model b (one or more covariates, as the second model).

lab

Title (eg. "BIOCHEMICAL"), default value is x.

Value

ROC.


metabolomicsR documentation built on April 29, 2022, 9:05 a.m.