This function generates the overall Precision-Recall (PR) curve for cross-validations (CVs) with different feature numbers and the PR curve for the average CVs based on user-selected feature numbers.
plot_ml_pr(ml_se, feature_num)
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_mean_auc & static_mean_auc: PR curve plots.
initeractive_pr & static_pr: PR Curve of average CVs plots.
table_mean_auc_plot: data frame of the AUC, recall, and precision of PR of n features.
table_pr: average PR curve plot of n feature.
data("ml_se_sub")
res <- plot_ml_pr(ml_se_sub, feature_num=10)