Description Usage Arguments Value Author(s) See Also Examples
Calculates the proportion (percentage) of all non zero elements in a species matrix.
| 1 |   fill(obj)
 | 
|  obj  | 
 | 
returns a vector of length one and mode "numeric"
Roland Kaiser
nestedtemp in vegan for nestedness indices.
| 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()
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.