Skip to contents

Visual comparison of bootstrap selection frequencies by selector. Requires ggplot2.

Usage

plot_compare_freq(freq_tab)

Arguments

freq_tab

Data frame as returned by compare_selectors_bootstrap().

Value

A ggplot object when ggplot2 is available; otherwise draws a base R image.

Examples

freq_tab <- data.frame(
  selector = rep(c("AIC", "BIC"), each = 3),
  variable = rep(paste0("x", 1:3), times = 2),
  freq = c(0.85, 0.2, 0.45, 0.75, 0.35, 0.3)
)
plot_compare_freq(freq_tab)