Description Usage Arguments Author(s) References Examples
This function plots the ordination and shows the centroid for a focal herbivore
1 2 3 4 | dist.group.plot(specialization, id, cex = 1, PCoA = c(1, 2), seg.col = "pink", seg.wd = 2,
seg.lty = 1, pt.col = "red", pt.pch = 19, pt.cex = 1.5, x.lim = NULL, y.lim = NULL,
plant.plot = "all.names", rel.pch = 19, rel.cex = 1.5, rel.col = "red", nrel.pch = 19,
nrel.cex = 1.5, nrel.col = "red", verbose = TRUE, scaled = TRUE)
|
specialization |
The object created by the function |
id |
A numeric indicating which species of herbivore to plot from list |
cex |
A numeric indicating the font size for diet item names. |
PCoA |
A vector length two indicated which two PCo axes to plot. |
seg.col |
The color of segments joining diet items to centroid. |
seg.wd |
A value indicating the line width of segments joining diet items to centroid. |
seg.lty |
A value indicating the line type of segments joining diet items to centroid. |
pt.col |
The color of centroid plotting character. |
pt.pch |
A value indicating the plotting character for centroid. |
pt.cex |
A value indicating the character expansion for centroid plotting character. |
x.lim |
A vector length two indicating the min and max of x axis. |
y.lim |
A vector length two indicating the min and max of y axis. |
plant.plot |
A value taking on "all.names", "relevent", or "points". 'all.names' plots the names of host plants, 'relevent' plots only the names of host plants used by focale herbivore (indicated by argument id), 'points' points all host plants as points. |
rel.pch |
A value indicating the plotting character for host plants used by herbivore. |
rel.cex |
A value indicating the character expansion for host plants used by herbivore. |
rel.col |
A value indicating the color for host plants used by herbivore. |
nrel.pch |
A value indicating the plotting character for host plants not used by herbivore. |
nrel.cex |
A value indicating the character expansion for host plants not used by herbivore. |
nrel.col |
A value indicating the color for host plants not used by herbivore. |
verbose |
A logical indicating whether information on taxonomic and ordinated host breadth is included in plot. |
scaled |
A logical indicating whether to return scaled ordinated host breadth. |
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 22 23 | 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)
dist.group.plot(specialization=x,id=7,cex=1)
dist.group.plot(specialization=x,id=10,cex=1,pt.cex=0.75,plant.plot="points",nrel.pch=1,
nrel.col="black",nrel.cex=0.75)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.