get_stats_multi: Prepare bootstrapped results of one or more networks for...

View source: R/helpers.r

get_stats_multiR Documentation

Prepare bootstrapped results of one or more networks for ggplot2 friendly data format.

Description

Helper to prepare the bootstrapped metric output of one or more webs/networks from boot_specieslevel, boot_networklevel_n or boot_specieslevel_n in a format ready for ggplot. See the examples section of boot_specieslevel.

Usage

get_stats_multi(webs_stats)

Arguments

webs_stats

A list of bootstrap results from boot_specieslevel, or from multiple runs of boot_networklevel_n or boot_specieslevel_n.

Value

A list of two data frames to be used with ggplot. First one, stats_df is a 5 columns data frame, containing for each network (web) the sample size (spl_size) at each iteration and the corresponding mean metric (mean), together with its bootstrap confidence interval limits (ci_low, ci_up). The second one, lines_df, contains all the bootstrapped values (value) of a given network metric at each iteration (simulation_id) and its corresponding sample size (spl_size). Can be used for enhancing visual effect when plotting the mean bootstrap values.

Examples

 # See example section of ?boot_specieslevel


valentinitnelav/bootstrapnet documentation built on June 5, 2024, 3:21 p.m.