plot_avg_TEFI: Plot Average TEFI by Sample Size

View source: R/plot_avg_TEFI.R

plot_avg_TEFIR Documentation

Plot Average TEFI by Sample Size

Description

Plots median TEFI values across different sample sizes, algorithms, and correlation methods.

Usage

plot_avg_TEFI(results)

Arguments

results

Data frame from boot_and_evaluate with TEFI values.

Value

A ggplot object showing TEFI trends.

Examples

# A small table with the structure returned by boot_and_evaluate()
set.seed(1)
res <- expand.grid(Algorithm = c("louvain", "walktrap"),
                   Correlation_Method = c("pearson", "spearman"),
                   Sample_Size = c(100, 250, 500), Simulation = 1:5,
                   stringsAsFactors = FALSE)
res$TEFI <- rnorm(nrow(res), -5, 0.3)

plot_avg_TEFI(res)

InterconectaR documentation built on Oct. 16, 2026, 1:06 a.m.