Description Usage Arguments Details Author(s) See Also Examples
Creates an image plot from a food web
1 |
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, |
names |
if |
... |
extra arguments passed to R-function image |
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)
Karline Soetaert <k.soetaert@nioo.knaw.nl>
plotweb
, for different type of plotting
Benguela
, the Benguela pelagic food web.
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.