R/plot-sl-roc.R
plot_sl_roc.Rd
Show the ROC curve of the microbiome marker calculated by run_sl
.
plot_sl_roc(mm, group, nfolds = 3, nrepeats = 3, tune_length = 5, ...)
a microbiomeMarker object.
same with the run_sl()
.
a ggplot2::ggplot
object.
data(enterotypes_arumugam)
# small example phyloseq object for test
ps_s <- phyloseq::subset_taxa(
enterotypes_arumugam,
Phylum %in% c("Firmicutes", "Bacteroidetes")
)
set.seed(2021)
mm <- run_sl(
ps_s,
group = "Gender",
taxa_rank = "Genus",
nfolds = 2,
nrepeats = 1,
top_n = 15,
norm = "TSS",
method = "LR",
)
#> Loading required package: ggplot2
#> Loading required package: lattice
plot_sl_roc(mm, group = "Gender")