gg_networklevel: Plot bootstrapped network level metrics for one or multiple...

View source: R/boot_gg.r

gg_networklevelR Documentation

Plot bootstrapped network level metrics for one or multiple networks.

Description

This function takes as input the output of boot_networklevel. Can be used to plot the bootstrapped network level metrics of a single network (not that useful) or for multiple networks (to check for overlaps in their confidence intervals).

Usage

gg_networklevel(
  metrics_stats,
  size_boot_lines = 0.1,
  alpha_boot_lines = 0.1,
  size_ci = 1,
  linetype_ci = 2,
  size_mean = 1,
  linetype_mean = 1
)

Arguments

metrics_stats

The output of boot_networklevel.

size_boot_lines

Size of the line connecting the bootstrapped values of the metric. Default is 0.1. Passed to geom_line.

alpha_boot_lines

Alpha parameter of the line connecting the bootstrapped values of the metric. Default is 0.1. Passed to geom_line.

size_ci

Size of the line used for the confidence intervals. Default is 1. Passed to geom_line.

linetype_ci

Type of the line used for the confidence intervals. Default is 2. Passed to geom_line.

size_mean

Size of the line connecting the bootstrapped mean values of the metric. Default is 1. Passed to geom_line.

linetype_mean

Type of the line connecting the bootstrapped mean values of the metric. Default is 1. Passed to geom_line.

Value

A list of one or more ggplots.

Examples

# See example section of ?boot_networklevel


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