gg_specieslevel_compare_webs: Plot bootstrapped species level metrics for a common species...

View source: R/boot_gg.r

gg_specieslevel_compare_websR Documentation

Plot bootstrapped species level metrics for a common species in two or more webs.

Description

Allows the visual comparison of the bootstrapped metric values of a selected species (lower and higher level) across two or more networks. To be used in combination with boot_specieslevel. See the example section of boot_specieslevel.

Usage

gg_specieslevel_compare_webs(
  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 a single lower level species name (plant) shared among the given networks. Only the bootstrapped metric values for this single species will be plotted.

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.