roc_surro_subplots function

roc_surro_subplots

roc_surro_subplots

Function that plots the ROCs of the surrogates of all the available surrogate models as plotly sub-plots

roc_surro_subplots(surrogates, bin_phenotypes)

Arguments

  • surrogates: numeric data.frame containing the surrogate values by Bizzarri et al.
  • bin_phenotypes: numeric data.frame with the binarized phenotypes output of binarize_all_pheno

Returns

plotly image with all the ROCs for all the available clinical variables

Examples

library(pROC) library(plotly) library(MiMIR) #load the dataset met <- synthetic_metabolic_dataset phen<- synthetic_phenotypic_dataset #Calculating the binarized surrogates b_phen<-binarize_all_pheno(phen) #Apply a surrogate models and plot the ROC curve surr<-calculate_surrogate_scores(met, phen, MiMIR::PARAM_surrogates, colnames(b_phen)) roc_surro_subplots(surr$surrogates, b_phen)
  • Maintainer: Daniele Bizzarri
  • License: GPL-3
  • Last published: 2024-02-01

Useful links