Description Usage Arguments Value Author(s) References Examples
This function calculates the null expectation of host breadth if herbivores sample diet items randomly.
1 2 | null.breadth(dat, dist.method = "jaccard", rep = 100, quantiles = c(0.025, 0.975),
scaled = FALSE)
|
dat |
A matrix of diet associations. Rows are herbivores and columns are diet items. |
dist.method |
Dissimilarity index passed on to |
rep |
The number of permutations to generate a null distribution |
quantiles |
A vector length of two indicating the lower and upper quantiles to report for the null distribution. |
scaled |
A logical indicating whether to report the scaled ordinated host breadth. |
An array show the lower and upper quantiles of the null distribution for each taxonomic richness
James Fordyce
Fordyce, J.A., C.C. Nice, C.A. Hamm, & M.L. Forister. Quantifying diet breadth through ordination of host association. Ecology
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | testdata<-
c(
0,0,0,0,1,0,0,0,0,0,
0,0,0,0,0,0,1,1,0,0,
1,1,1,0,0,0,0,0,0,0,
0,0,0,0,1,1,0,1,0,1,
1,1,1,0,0,0,1,0,0,0,
1,1,0,0,1,0,1,0,0,0,
0,0,0,1,0,0,1,0,1,1,
1,0,1,0,1,1,0,0,0,1,
1,1,0,0,1,0,0,1,1,1,
1,1,1,0,1,1,0,1,1,1)
dat<-array(dim=c(10,10),data=testdata)
dat<-t(dat)
colnames(dat)<-paste("",LETTERS[1:10],sep="")
rownames(dat)<-paste("bug",1:10,sep="")
null.breadth(dat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.