food_web: Create a food_web object to use in a trophic projection

Description Usage Arguments Value Examples

Description

A 'food web' object stores the trophic dynamics of a set of potentially interacting species. It is a sub-component of a trophic_dynamics object

Usage

1
2
3
4
5
6
7
8
9
build_food_web(interaction_matrix, ...)

is.food_web(x)

## S3 method for class 'food_web'
print(x, ...)

## S3 method for class 'food_web'
plot(x, ...)

Arguments

interaction_matrix

a matrix identifying (weighted) trophic links between species pairs (rows eat columns)

...

further arguments passed to or from other methods

x

an object to print or test as a food_web object

Value

An object of class food_web

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
library(trophic)

# Construct the food_web object

test_fw <- build_food_web(interaction_matrix = food_web)

# Test if object is of the type 'food_web'
  
## Not run: 
is.food_web(x)

## End(Not run)

# Print information about the 'food_web' object

## Not run: 
print(x)

## End(Not run)

# Plot a 'food_web' object

## Not run: 
plot(x)

## End(Not run)

jdyen/trophic documentation built on May 15, 2019, 3:19 p.m.