Visualize the evolution of network topology metrics over time.

plot_network_evolution(
  network_metrics,
  metrics_to_plot = c("density", "clustering", "avg_path_length")
)

Arguments

network_metrics

Data frame with network evolution metrics

metrics_to_plot

Character vector of metrics to plot (default: all)

Value

List containing ggplot objects

Examples

if (FALSE) { # \dontrun{
market <- create_annem_market(n_agents = 100)
results <- market$run_simulation(n_steps = 50)
network_metrics <- market$analyze_network_evolution()
plots <- plot_network_evolution(network_metrics)
} # }