Skip to contents

plot_graph_stats takes a data frame containing graph level statistics and generates a visual representation using either line or bar plots. This function is designed to work with data frames that represent network statistics over multiple networks or time points.

Usage

plot_graph_stats(summary_df, type = "line", specific_stats = NULL)

Arguments

summary_df

A data frame produced by the summary.netify function or any other function that outputs network statistics in a similar format. The data frame should have a column "net" which identifies the network or time point for each row.

type

A character string specifying the type of plot to generate: either 'line' for line plots or 'bar' for bar plots. The default is 'line'.

specific_stats

Optional vector of column names from summary_df specifying which statistics to plot. If NULL (the default), all statistics in summary_df will be plotted.

Value

A ggplot object displaying the specified statistics for each network. The plots are faceted by statistic type across the networks or time points.

Author

Ha Eun Choi, Cassy Dorff, Shahryar Minhas