This function is for visualizing the results of Shapley Additive exPlanations (SHAP) results.
plot_ml_shap(shap_se)
A SummarizedExperiment object with results computed by ml_shap
.
Return 2 interactive plots, 2 static plots, and 2 tables.
interactive_feature_importance & static_feature_importance: SHAP feature importance plot.
interactive_summary_plot & static_summary_plot: SHAP value plot.
table_feature_importance: table for plotting feature importance plot.
table_summary_plot: table for plotting SHAP value plot.
library(SHAPforxgboost)
data("ml_se_sub")
shap_se <- ml_shap(ml_se_sub, feature_num=10, nsim=5)
res <- plot_ml_shap(shap_se)