Package ordibreadth. R topics documented: December 4, Type Package Title Ordinated Diet Breadth Version 1.0 Date Author James Fordyce

Similar documents
Package citccmst. February 19, 2015

Package ORIClust. February 19, 2015

Package Actigraphy. R topics documented: January 15, Type Package Title Actigraphy Data Analysis Version 1.3.

Package wally. May 25, Type Package

Package propoverlap. R topics documented: February 20, Type Package

Package p3state.msm. R topics documented: February 20, 2015

Package nopaco. R topics documented: April 13, Type Package Title Non-Parametric Concordance Coefficient Version 1.0.

Package xseq. R topics documented: September 11, 2015

Package CompareTests

Package AbsFilterGSEA

Package rvtdt. February 20, rvtdt... 1 rvtdt.example... 3 rvtdts... 3 TrendWeights Index 6. population control weighted rare-varaints TDT

Package CTT. February 4, 2018

R documentation. of GSCA/man/GSCA-package.Rd etc. June 8, GSCA-package. LungCancer metadi... 3 plotmnw... 5 plotnw... 6 singledc...

Package QualInt. February 19, 2015

Package singlecase. April 19, 2009

Package speff2trial. February 20, 2015

Package cssam. February 19, 2015

ivlewbel: Uses heteroscedasticity to estimate mismeasured and endogenous regressor models

Package prognosticroc

Package appnn. R topics documented: July 12, 2015

Package GANPAdata. February 19, 2015

Package ClusteredMutations

Package diggitdata. April 11, 2019

Package HAP.ROR. R topics documented: February 19, 2015

Package inctools. January 3, 2018

Package seqdesign. April 27, Version 1.1 Date

Package inote. June 8, 2017

Package frailtyhl. February 19, 2015

Package mediation. September 18, 2009

Package ega. March 21, 2017

Package longroc. November 20, 2017

Package BUScorrect. September 16, 2018

Package EpiEstim. R topics documented: February 19, Version Date 2013/03/08

Package PELVIS. R topics documented: December 18, Type Package

Package PROcess. R topics documented: June 15, Title Ciphergen SELDI-TOF Processing Version Date Author Xiaochun Li

Package MSstatsTMT. February 26, Title Protein Significance Analysis in shotgun mass spectrometry-based

Package MethPed. September 1, 2018

Package tumgr. February 4, 2016

Package hei. August 17, 2017

Package influence.me

Package preference. May 8, 2018

Package sbpiper. April 20, 2018

1 Version SP.A Investigate patterns of association in bivariate data

Package mdsdt. March 12, 2016

Package ncar. July 20, 2018

PROcess. June 1, Align peaks for a specified precision. A user specified precision of peak position.

Package msgbsr. January 17, 2019

Reliability of Ordination Analyses

Package clust.bin.pair

Package StepReg. November 3, 2017

Package RNAsmc. December 11, 2018

Package ExactCIdiff. February 15, 2013

Unit 1 Outline Science Practices. Part 1 - The Scientific Method. Screencasts found at: sciencepeek.com. 1. List the steps of the scientific method.

Package NonCompart. August 16, 2017

Package Interpol. R topics documented: February 19, Type Package. Title Interpolation of amino acid sequences. Version

Package AIMS. June 29, 2018

Package ICCbin. November 14, 2017

User Guide. Association analysis. Input

Package SAMURAI. February 19, 2015

Package noia. February 20, 2015

Package DeconRNASeq. November 19, 2017

Package labstats. December 5, 2016

Package flowtype. R topics documented: July 18, Type Package. Title Phenotyping Flow Cytometry Assays. Version

Package TEQR. R topics documented: February 5, Version Date Title Target Equivalence Range Design Author M.

Package CorMut. January 21, 2019

Reveal Relationships in Categorical Data

The Research Roadmap Checklist

CNV PCA Search Tutorial

Multilevel data analysis

Package Fahrmeir. May 31, 2016

Package bionetdata. R topics documented: February 19, Type Package Title Biological and chemical data networks Version 1.0.

Appendix B. Nodulus Observer XT Instructional Guide. 1. Setting up your project p. 2. a. Observation p. 2. b. Subjects, behaviors and coding p.

Package TFEA.ChIP. R topics documented: January 28, 2018

Package seqcombo. R topics documented: March 10, 2019

Package CopulaREMADA

Package CopulaREMADA

Package nontarget. September 27, 2016

Normal Q Q. Residuals vs Fitted. Standardized residuals. Theoretical Quantiles. Fitted values. Scale Location 26. Residuals vs Leverage

Package pollen. October 7, 2018

Lesson 9 Presentation and Display of Quantitative Data

Migraine Dataset. Exercise 1

Package BCRA. April 25, 2018

Doing Thousands of Hypothesis Tests at the Same Time. Bradley Efron Stanford University

Package medicalrisk. August 29, 2016

EPS 625 INTERMEDIATE STATISTICS TWO-WAY ANOVA IN-CLASS EXAMPLE (FLEXIBILITY)

Item Response Theory for Polytomous Items Rachael Smyth

Package cancer. July 10, 2018

Package CLL. April 19, 2018

1SCIENTIFIC METHOD PART A. THE SCIENTIFIC METHOD

Introduction to SPSS S0

Linear Regression in SAS

Package NarrowPeaks. August 3, Version Date Type Package

Undertaking statistical analysis of

F i t p o w e r 5 a n d p o i s s o n A g e- Period-Cohort models for prediction of cancer incidence

BIOL 458 BIOMETRY Lab 7 Multi-Factor ANOVA

MEASURES OF ASSOCIATION AND REGRESSION

5090 BIOLOGY. 5090/62 Paper 6 (Alternative to Practical), maximum raw mark 40

Review Questions in Introductory Knowledge... 37

Discovery of Novel Human Gene Regulatory Modules from Gene Co-expression and

Transcription:

Type Package Title Ordinated Diet Breadth Version 1.0 Date 2015-11-11 Author Package ordibreadth December 4, 2015 Maintainer James A. Fordyce <jfordyce@utk.edu> Calculates ordinated diet breadth with some plotting functions. License GPL (>= 3) LazyLoad yes Depends vegan NeedsCompilation no Repository CRAN Date/Publication 2015-12-04 08:40:43 R topics documented: ordibreadth-package.................................... 2 dist.group.plot........................................ 2 focal.profplot........................................ 4 hyp.ordi.breadth....................................... 5 null.breadth......................................... 7 null.breadth.focal...................................... 8 null.breadth.focal.summary................................. 9 ordi.breadth......................................... 11 ordi.focal.drop........................................ 12 profplot........................................... 14 summaryhbreadth...................................... 15 summaryordi........................................ 16 Index 18 1

2 dist.group.plot ordibreadth-package Calculates ordinated diet breadth. Details Calculates ordinated diet breadth and provides plotting functions. Package: ordibreadth Type: Package Version: 1.0 Date: 2015-08-07 License: GPL 3.0 Users provide a matrix of host associations, where rows are consumers (e.g., heribivores) and columns are resources (e.g., plants). The function ordi.breadth calculates the ordinated breadth for all consumers in the matrix and summary.hbreadth summarizes the output and dist.group.plot can be used for visualization. Maintainer: <jfordyce@utk.edu> dist.group.plot dist.group.plot This function plots the ordination and shows the centroid for a focal herbivore 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)

dist.group.plot 3 specialization The object created by the function ordi.breadth. id cex PCoA seg.col seg.wd seg.lty pt.col pt.pch pt.cex x.lim y.lim plant.plot rel.pch rel.cex rel.col nrel.pch nrel.cex nrel.col verbose scaled A numeric indicating which species of herbivore to plot from list specialization. A numeric indicating the font size for diet item names. A vector length two indicated which two PCo axes to plot. The color of segments joining diet items to centroid. A value indicating the line width of segments joining diet items to centroid. A value indicating the line type of segments joining diet items to centroid. The color of centroid plotting character. A value indicating the plotting character for centroid. A value indicating the character expansion for centroid plotting character. A vector length two indicating the min and max of x axis. A vector length two indicating the min and max of y axis. 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. A value indicating the plotting character for host plants used by herbivore. A value indicating the character expansion for host plants used by herbivore. A value indicating the color for host plants used by herbivore. A value indicating the plotting character for host plants not used by herbivore. A value indicating the character expansion for host plants not used by herbivore. A value indicating the color for host plants not used by herbivore. A logical indicating whether information on taxonomic and ordinated host breadth is included in plot. A logical indicating whether to return scaled ordinated host breadth. 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

4 focal.profplot 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 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) focal.profplot focal.profplot Plots the profile plot of distance from herbivore centroid to host plants calculated by excluding the focal herbivore. Useful for exploratory data analysis. focal.profplot(dat, focal.bug, dist.method = "jaccard", col = c("black", "red")) dat focal.bug dist.method col A matrix of diet associations. Rows are herbivores and columns are diet items. A value indicating which herbivore is the focal herbivore. Dissimilarity index passed on to vegdist in the vegan package. A vector length 2 indicating colors for plotting. First color is for non-diet items, second color is for diet items. A profile plot

hyp.ordi.breadth 5 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 focal.profplot(dat,4) hyp.ordi.breadth hyp.ordi.breadth Calculates the diet breadth of a hypothetical herbivore placed in ordination space. hyp.ordi.breadth(dat, grouping, dist.method = "jaccard", distance = FALSE) dat grouping dist.method distance A matrix of diet associations. Rows are herbivores and columns are diet items. a vector of ones and zeros or TRUE and FALSE indicting diet items of hypothetical herbivore Dissimilarity index passed on to vegdist in the vegan package a logical indicating whether to return distance of hypothetical herbivore centroid to plants used in PCoA space and the coordinates of the centroid in PCoA space

6 hyp.ordi.breadth tot.breadth distances centroid Ordinated host breadth of hypothetical herbivore Distance from centroid to diet items in PCoA space Coordinates of the centroid of hypothetical herbivore 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 group<-c(true,true,true,false,false,false,false,false,false,false) hyp.ordi.breadth(dat,group) hyp.ordi.breadth(dat,group,distance=true) group<-c(1,1,1,1,1,1,1,1,1,1) hyp.ordi.breadth(dat,group)#extreme generalist hyp.ordi.breadth(dat,group,distance=true)

null.breadth 7 null.breadth null.breadth null.breadth(dat, dist.method = "jaccard", rep = 100, quantiles = c(0.025, 0.975), scaled = FALSE) dat dist.method rep quantiles scaled A matrix of diet associations. Rows are herbivores and columns are diet items. Dissimilarity index passed on to vegdist in the vegan package. The number of permutations to generate a null distribution A vector length of two indicating the lower and upper quantiles to report for the null distribution. 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 This function calculates the null expectation of host breadth if herbivores sample diet items randomly. 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,

8 null.breadth.focal 1,1,1,0,1,1,0,1,1,1) null.breadth(dat) null.breadth.focal null.breadth.focal This function calculates the null expectation of ordinated host breadth for each herbivore individually. The ordination for each herbivore is based on PCoA where the focal herbivore is not included. null.breadth.focal(dat, dis.method = "jaccard", reps = 100) dat dis.method reps A matrix of diet associations. Rows are herbivores and columns are diet items. Dissimilarity index passed on to vegdist in the vegan package. The number of permutations to generate a null distribution. Details In situations where the focal herbivore is the only species using a particular diet item, that diet item is not included in the ordination. This is the modified plant richness. A list containing the following: species ) Name of herbivore species (row name of dat observed.breadth Ordinated diet breadth scale.factor Ordinated diet breadth of most extreme generalist herbivore based on ordination observed.breadth.scaled Scaled ordinated diet breadth totalplantrichness Taxonomic diet richness of focal species modplantrichness Modified taxonomic diet richness of focal species (see details) null A vector of null ordinated diet values

null.breadth.focal.summary 9 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 null.breadth.focal(dat) null.breadth.focal.summary null.breadth.focal.summary Summarizes results contained in object created by null.breadth.focal null.breadth.focal.summary(null.breadth.focal.out, quantiles = c(0.025, 0.975), round = 5, scaled = FALSE)

10 null.breadth.focal.summary null.breadth.focal.out Object created by null.breadth.focal quantiles round scaled A vector length of two indicating the lower and upper quantiles to report for the null distribution. A value indicating the number of digits to round results Logical indicating whether to return scaled ordinated host breadth. Returns a dataframe of summarized results. 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 x<-null.breadth.focal(dat) null.breadth.focal.summary(x)

ordi.breadth 11 ordi.breadth ordi.breadth This function calculates ordinated diet breadth ordi.breadth(dat, dist.method = "jaccard") dat dist.method A matrix of diet associations. Rows are herbivores and columns are diet items. Dissimilarity index passed on to vegdist in the vegan package. A list containing the following species eig tot.breadth A vector of the herbivore species names (row names of dat) The eigen values for each of the PCo axes A vector of the raw ordinated host breadth for each species scaled.breadth A vector of the scaled ordinated host breadth for each species distances A list of vectors giving the distance of each diet item from the centroid of each herbivore group.vectors A matrix of logicals indicating diet items (columns) for each herbivore (rows) centroids.group A matrix giving the centroid on PCo (columns) for each herbivore (rows) plants.ord dist.method A matrix of the coordinates for each plant in PCoA space Dissimilarity index used for PCoA See Also summaryhbreadth

12 ordi.focal.drop 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 ordi.breadth(dat) ordi.focal.drop ordi.focal.drop This function computes the ordinated host breadth based on ordination where each herbivore is excluded from the ordination. ordi.focal.drop(dat, dist.method = "jaccard") dat dist.method A matrix of diet associations. Rows are herbivores and columns are diet items. Dissimilarity index passed on to vegdist in the vegan package. A list containing the following: species ODB ODB.scaled Name of herbivore species (row name of dat Ordinated diet breadth Scaled ordinated diet breadth

ordi.focal.drop 13 focal.distances Distance to each diet item from herbivore centroid based on ordination excluding focal herbivore focal.breadth Ordinated diet breadth of herbivore based on ordination where focal herbivore is excluded focal.scale.factor The ordinated diet breadth of an extreme generalist in the ordinated space when focal herbivore is excluded from the ordination focal.scale.breadth Scaled ordinated diet breadth of herbivore based on ordination where focal herbivore is excluded 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) ordi.focal.drop(dat)

14 profplot profplot profplot Plots the profile plot of distance from herbivore centroid to host plants. Useful for exploratory data analysis. profplot(specialization, id, col = c("black", "red")) specialization The object created by the function ordi.breadth. id col A profile plot A numeric identifying which species of herbivore to plot from list specialization. A vector length 2 indicating colors for plotting. First color is for non-diet items, second color is for diet items. 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

summaryhbreadth 15 x<-ordi.breadth(dat) profplot(x,5)#profile plot for species 5 summaryhbreadth summaryhbreadth This function summarizes the ordinated host breadth from the object created by ordi.breadth. summaryhbreadth(specialization, round = 5, do.order = FALSE, by = "Richness") specialization The object created by the function ordi.breadth. round do.order by The number of digits to round results Logical indicating whether to sort results Indicate which column to sort results by. Can be "Herbivore","Richness","Breadth", or "ScaledBreadth" A dataframe showing result summary See Also ordi.breadth

16 summaryordi 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 x<-ordi.breadth(dat) summaryhbreadth(x) summaryordi summaryordi Summarizes object provided by ordi.focal.drop summaryordi(ordi.out, round = 5) ordi.out round Object provided by ordi.focal.drop. The number of digits to round results. A dataframe showing result summary

summaryordi 17 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) x<-ordi.focal.drop(dat) summaryordi(x)

Index Topic package ordibreadth-package, 2 dist.group.plot, 2 focal.profplot, 4 hyp.ordi.breadth, 5 null.breadth, 7 null.breadth.focal, 8 null.breadth.focal.summary, 9 ordi.breadth, 11 ordi.focal.drop, 12 ordibreadth (ordibreadth-package), 2 ordibreadth-package, 2 profplot, 14 summaryhbreadth, 15 summaryordi, 16 18