show_plots: Visualize all plots stored in a 'sample_size_EGA_montecarlo'...

View source: R/sample_size_EGA_montecarlo.R

show_plotsR Documentation

Visualize all plots stored in a sample_size_EGA_montecarlo object

Description

Prints each plot in x$plots sequentially. Use this after calling sample_size_EGA_montecarlo(..., plots = TRUE) to inspect the simulation graphically without having to write each print().

Usage

show_plots(x, which = NULL)

Arguments

x

A sample_size_EGA_montecarlo object that was produced with plots = TRUE, or its $plots list.

which

Optional character vector with the names of the plots to show (subset of names(x$plots)). Default NULL = all.

Value

Invisibly returns the list of plots.

Examples

res <- sample_size_EGA_montecarlo(
  community_sizes = c(4, 4), within_edge = 0.20,
  sample_sizes = c(100, 200, 400), n_rep = 10,
  data_type = "continuous", seed = 1, verbose = FALSE, plots = TRUE,
  control = list(boots = 100, corr = "pearson", algorithm = "walktrap")
)
show_plots(res, which = "power_curve_ci")

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