stan-dev / projpred

Projection predictive variable selection
https://mc-stan.org/projpred/
Other
110 stars 26 forks source link

Place full-data predictor ranking and ranking proportions in plotting area of `plot.vsel()` (and repel them) #416

Closed fweber144 closed 1 year ago

fweber144 commented 1 year ago

In #414, the full-data predictor ranking and the ranking proportions (if available) were added to the x-axis of the plot created by plot.vsel(). Here, new arguments ranking_repel and ranking_repel_args are added. When setting ranking_repel to NULL, the full-data predictor ranking and the corresponding ranking proportions are placed below the x-axis, as before. However, by setting ranking_repel to "text" or "label", they are placed within the plotting area using ggrepel::geom_text_repel() or ggrepel::geom_label_repel(), respectively. (Argument ranking_repel_args only serves the purpose of passing arguments to ggrepel::geom_text_repel() or ggrepel::geom_label_repel(), e.g., to set a seed for these.)