Description Usage Arguments Value Author(s) References Examples
Plots the profile plot of distance from herbivore centroid to host plants. Useful for exploratory data analysis.
1 |
specialization |
The object created by the function |
id |
A numeric identifying which species of herbivore to plot from list |
col |
A vector length 2 indicating colors for plotting. First color is for non-diet items, second color is for diet items. |
A profile plot
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 21 | testdata<-
c(
0,0,0,0,1,0,0,0,0,0,#1
0,0,0,0,0,0,1,1,0,0,#2
1,1,1,0,0,0,0,0,0,0,#3
0,0,0,0,1,1,0,1,0,1,#4
1,1,1,0,0,0,1,0,0,0,#4
1,1,0,0,1,0,1,0,0,0,#4
0,0,0,1,0,0,1,0,1,1,#4
1,0,1,0,1,1,0,0,0,1, #5
1,1,0,0,1,0,0,1,1,1,#6
1,1,1,0,1,1,0,1,1,1) #8
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="")
x<-ordi.breadth(dat)
profPlot(x,5)#profile plot for species 5
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.