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)

Arguments

ml_se

A SummarizedExperiment object with results computed by ml_model.

feature_num

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.

Value

Return 2 interactive plots, 2 static plots, and 2 data frames.

  1. interactive_mean_auc & static_mean_auc: PR curve plots.

  2. initeractive_pr & static_pr: PR Curve of average CVs plots.

  3. table_mean_auc_plot: data frame of the AUC, recall, and precision of PR of n features.

  4. table_pr: average PR curve plot of n feature.

Examples

data("ml_se_sub")
res <- plot_ml_pr(ml_se_sub, feature_num=10)