gg_specieslevel_web_by_web: Plot bootstrapped species level metrics for one or more...

View source: R/boot_gg.r

gg_specieslevel_web_by_webR Documentation

Plot bootstrapped species level metrics for one or more webs/networks.

Description

To be used in combination with boot_specieslevel and get_stats_multi. See the example section of boot_specieslevel.

Usage

gg_specieslevel_web_by_web(
  metrics_stats,
  sp_lower = NULL,
  sp_higher = NULL,
  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 get_stats_multi.

sp_lower

A character vector of one or more lower level species names (plants) shared among the given networks. Only the bootstrapped metric values for these species will be plotted. It can be helpful when there are too many species in a network and the graphs could get easily cluttered. If sp_lower is left empty, then all species will be considered for plotting. If the species names are not shared across all given networks, then a warning will be given for the specific network from where they are missing and the plot will be empty or show only existing shared species names.

sp_higher

Similar to sp_lower, but valid for higher level species names (insects).

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_specieslevel


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