plotwebs: Image plot of a food web

Description Usage Arguments Details Author(s) See Also Examples

Description

Creates an image plot from a food web

Usage

1
imageweb (Flow, names = FALSE, ...)

Arguments

Flow

a matrix with named rows and columns of dimensions no. of species by no. of species, with a given element being some positive real number if column species eats row species, 0 otherwise

names

if TRUE will label the third and fourth axis with names of components

...

extra arguments passed to R-function image

Details

Function imageweb creates an image plot with consumers (columns of the Flow matrix) on the x-axis and resources (rows of the Flow matrix) on the y-axis.

By default, the colors chosen are grey(100)

Author(s)

Karline Soetaert <k.soetaert@nioo.knaw.nl>

See Also

plotweb, for different type of plotting

Benguela, the Benguela pelagic food web.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## -----------------------------------------------------------------------------
## Plotting the Benguela food web:
## -----------------------------------------------------------------------------

BB <- (Benguela) ; BB[BB > 0] <- 1
imageweb(BB, main = "Benguela food web")
imageweb(log(Benguela), col = femmecol(100), ylab = "FOOD", xlab = "CONSUMER")
imageweb(log(Benguela), names = TRUE)
plotweb(Benguela)     # from R-package diagram


## -----------------------------------------------------------------------------
## Niche webs
## -----------------------------------------------------------------------------

nicheweba <- generate.niche (S = 10, L = 30, c = 0)
nichewebb <- generate.niche (S = 10, L = 30, c = 0.3)

pm <- par (mfrow = c(1,2))
imageweb(nicheweba, main = "niche web, c = 0") 
imageweb(nichewebb, main = "niche web, c = 0.3") 

foodweb documentation built on May 2, 2019, 5:56 p.m.

Related to plotwebs in foodweb...