fill: Matrix fill of species matrix

Description Usage Arguments Value Author(s) See Also Examples

Description

Calculates the proportion (percentage) of all non zero elements in a species matrix.

Usage

1
  fill(obj)

Arguments

obj

Vegsoup* object.

Value

returns a vector of length one and mode "numeric"

Author(s)

Roland Kaiser

See Also

nestedtemp in vegan for nestedness indices.

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
27
28
29
30
31
32
33
34
35
require(vegsoup)

data(barmstein)

fill(barmstein)

# relation of matrix fill and number of occurences
data(windsfeld)

# unify layer and transform to presence/absence
x <- compress(windsfeld)

# number of occurences
jj <- colSums(x)
i <- sort(unique(jj))

# compute matrix fill for each occurence treshold
r <- t(sapply(i, function (y) {
	xi <- x[ , match(names(jj[ jj >= y ]), colnames(x)) ]
	c(dim(xi), fill(xi))
}))

par(mfrow = c(2,2))
plot(i, r[, 1], type = "b",
	xlab = "occurence threshold", ylab = "number of sites")

plot(i, r[, 2], type = "b",
	xlab = "occurence threshold", ylab = "number of species")

plot(i, r[, 1] / r[, 2], type = "b",
	xlab = "occurence threshold", ylab = "number of sites / number of species")
	
plot(i, r[, 3], type = "b",
	xlab = "occurence threshold", ylab = "matrix fill")
dev.off()

vegsoup documentation built on Feb. 24, 2021, 3 a.m.