View source: R/visualization.R
plot_ROC | R Documentation |
Plot Receiver Operating Characteristic (ROC) curve for metabolites with or without covariates
plot_ROC(
object = NULL,
y = NULL,
x = NULL,
model_a = NULL,
model_b = NULL,
lab = NULL,
text_x = 0.6,
text_y = 0.3
)
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. |
ROC.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.