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,
  text_x = 0.6,
  text_y = 0.3
)

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.

text_x

Annotation position of text in x-axis.

text_y

Annotation position of text in y-axis.

Value

ROC.


XikunHan/metabolomicsR documentation built on Oct. 14, 2024, 3:18 p.m.