computeFloralNesting: Compute floral and nesting resource values for...

Description Usage Arguments Value References Examples

View source: R/computeFloralNesting.R

Description

Function that computes the floral and nesting arrays according to the bees that are accounted for

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
computeFloralNesting(
  landuseMap,
  edgesMap,
  unitEdges = "m",
  widthEdges,
  landuseCodes,
  bees,
  num_floral,
  florNestInfo,
  codeEdges,
  cell.size = 25,
  paramList
)

Arguments

landuseMap

the map of the landscape containing the landuse categories, given as a raster

edgesMap

the map containing the length of field edges in each cell, given as a raster or a rasterstack in the case of multiple edge types

landuseCodes

the matching between landuse codes and landuse category names

bees

the vector of bee species

num_floral

the number of floral periods

florNestInfo

a list containing the floral and nesting information, with 4 elements: 1) the floral coverage, 2) bumblee bee info, i.e. floral value and attractiveness, 3) honeybee info and 4) solitary bee info

codeEdges

a vector containing the landuse codes for the edge types (e.g. grassy field edge or sown wildflower strip)

cell.size

a number in meters corresponding to the width and breadth of the input raster cell

paramList

the list of parameters needed to run the model

Value

a list containing two arrays: one of dimension nb of bees containing the nesting qualities, and one of dimension nb of bees * nb of periods containing the floral values for each species and each period

References

Haeussler J, Sahlin U, Baey C, Smith HG, Clough Y (2017) Predicting pollinator population size and pollination ecosystem service responses to enhancing floral and nesting resources. Ecology and Evolution, 7: 1898-1908.http://dx.doi.org/10.1002/ece3.2765 Expansion to 3 seasons first used in: Gardner E, et al. (2020) Reliably predicting pollinator abundance: Challenges of calibrating process-based ecological models. Methods in Ecology and Evolution.

Examples

1
2
3
4
5
6
nf<-computeFloralNesting(landuseMap=landuse, edgesMap=stack(grassmargins,flowermargins), unitEdges = "sqm", widthEdges=1,
                         landuseCodes, bees=c("GroundNestingBumblebees", "GroundNestingSolitaryBees"), num_floral=3,
                         florNestInfo=parameters$florNestInfo, codeEdges=c(11,21), cell.size = 10,paramList=parameters)
poll<-runpoll_3seasons(M_poll0 = numeric(0), firstyear=TRUE, firstyearfactor = c(1, 1),
            bees = c("GroundNestingBumblebees", "GroundNestingSolitaryBees"), cell.size = 10, paramList=parameters, nest=nf$nest,
            floral=nf$floral, cutoff = 0.99, loc_managed)

yclough/poll4pop documentation built on Sept. 7, 2020, 1:13 p.m.