Learn R Programming

SelectBoost.beta (version 0.4.5)

plot_compare_freq: Side-by-side selection-frequency heatmap

Description

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

Usage

plot_compare_freq(freq_tab)

Value

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

Arguments

freq_tab

Data frame as returned by compare_selectors_bootstrap().

Examples

Run this code
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)

Run the code above in your browser using DataLab