landtab: Tabulate a simulated landscape, populate patch classes with...

View source: R/landtab.r

landtabR Documentation

Tabulate a simulated landscape, populate patch classes with plants, and add floral data from a trait table.

Description

Tabulate a simulated landscape, populate patch classes with plants, and add floral data from a trait table.

Usage

landtab(x, comp0, comp1, comp2, prob0, prob1, prob2, traitTab, plantNames)

Arguments

x

the raster output of landgen

comp0

a vector of plant names, corresponding to names in the floral trait table, that will make up patch class 0; can be length 1 for monospecific class

comp1

a vector of plant names, corresponding to names in the floral trait table, that will make up patch class 1; can be length 1 for monospecific class

comp2

a vector of plant names, corresponding to names in the floral trait table, that will make up patch class 2; can be length 1 for monospecific class

prob0

a vector of weights for each plant in comp0, controlling the relative abundance of each plant within class0; same length as comp0

prob1

a vector of weights for each plant in comp1, controlling the relative abundance of each plant within class1; same length as comp1

prob2

a vector of weights for each plant in comp2, controlling the relative abundance of each plant within class2; same length as comp2

traitTab

a table of floral taxa and traits; must at minimum contain (1) plant name, (2) peak floral density, (3) first bloom, (4) peak bloom, (5) last bloom, and (6) sugar per flower; ideally also contains relevant functional traits in the form of categorical variables.

plantNames

the name of the column in the trait table that contains the plant names

Value

A data frame


sponslerdb/floralcurves documentation built on April 4, 2022, 11:59 p.m.