This function computes and ranks each feature's contribution based on the user-defined number of features and visualizes their importance. When users select a specific number of features, the frequency of the top features selected across all CV runs is displayed.
plot_ml_feature(ml_se, feature_num = 10)
A SummarizedExperiment object with results computed by ml_model
.
Numeric. The number of features to be shown in the plots.
A feature number value selected from feature_option
of the
SummarizedExperiment object returned by ml_model
. Usually be
one of 2, 3, 5, 10, 20, 50, 100. Default is 10
.
Return 2 interactive plots, 2 static plots, and 2 data frames.
interactive_selected_frequency & static_selected_frequency: selected frequency plot
interactive_feature_importance & static_feature_importance: feature importance plot
table_selected_frequency: table for plotting selected frequency plot
table_feature_importance: table for plotting feature importance plot
data("ml_se_sub")
res <- plot_ml_feature(ml_se_sub, feature_num=10)