R Stuff

Some R-codes, class notes and tutorials produced by our team and collaborators. We are glad to share them as they are, of course without any warranty that they are all running properly.

Your feedback is very welcome.

R Packages

Species Abundance Distributions

  • Package sads on CRAN

Parameter Space Exploration

Codes and tutorials

R programing and modelling

Additive Diversity Partitioning

The R package vegan has functions for individual-based permutation tests of additive diversity partitioning (sensu Crist et al. 2003).

Here we provide a code for the sample-based tests (Crist et al. 2003), where sample units of a given level are shuffled within units of the level above.

This code is an improved version of code used by Ribeiro et al. (2008). Apart code fine-tuning, in this version average diversity indexes are not weighted (see Crist et al. 2003).

Compound glm's

Compound generalized linear models of Pardini et al. (2010).

Different combinations of Poisson and negative binomial linear models were used to predict number of species (or individuals) of small mammals in three landscapes that differ in the remaining forest cover. Each of these combinations represents alternative hypotheses on the interaction between landscape context and patch-area in fragmented landscapes.


<bibtex> @ARTICLE{Alonso2008,

author = {Alonso, D and Ostling, A and Etienne, R S},
title = {The implicit assumption of symmetry and the species abundance distribution},
journal = {Ecology Letters},
year = {2008},
volume = {11},
pages = {93-105},

url={http://www3.interscience.wiley.com/journal/119419803/suppinfo|SOM} } @ARTICLE{bulmer1974,

author = {Bulmer, M. G.},
title = {On fitting the Poisson lognormal distribution to species abundance
journal = {Biometrics},
year = {1974},
volume = {30},
pages = {651-660},
owner = {paulo},
timestamp = {2009.04.12}



title={Partitioning species diversity across landscapes and regions: a hierarchical analysis of $$\alpha$$, $$\beta$$, and $$\gamma$$ diversity},
author={Crist, T.O. and Veech, J.A. and Gering, J.C. and Summerville, K.S.},
journal={The American Naturalist},
publisher={Univ. Chicago Press}



author = {Fisher, R.A. and Corbet, A.S. and Williams, C.B.},
title = {The relation between the number of the species and the number of
individuals in a random sample from animal population},
journal = {Journal of Animal Ecology},
year = {1943},
volume = {12},
pages = {42-58},
owner = {paulo},
timestamp = {2009.04.12}

} @ARTICLE{Green2007,

author = {Jessica L. Green and Joshua B. Plotkin},
title = {A statistical theory for sampling species abundances},
journal = {Ecology Letters},
year = {2007},
volume = {10},
pages = {1037 - 1045},
owner = {paulo},
timestamp = {2008.12.16},


  title = {poilog: Poisson lognormal and bivariate Poisson lognormal distribution},
  author = {Vidar Grøtan and Steinar Engen},
  year = {2008},
  note = {R package version 0.4},


author = {MacArthur, R. H.},
title = {On the relative abundance of species},
journal = {American Naturalist},
year = {1960},
volume = {94},
pages = {25-36},
owner = {paulo},
timestamp = {2009.04.11}



author = {I Motomura},
title = {On the statistical treatment of communities},
journal = {Zoological Magazine, Tokyo},
year = {1932},
volume = {44},
pages = {379-383},
owner = {paulo},
timestamp = {2009.04.14}



author = {Pardini, R. and Faria, D. and Accacio, G.M. and Laps, R.R. and Mariano-Neto, E. and Paciencia, M.L.B. and Dixo, M. and Baumgarten, J.},
title = {The challenge of maintaining Atlantic forest biodiversity: A multi-taxa
conservation assessment of specialist and generalist species in an
agro-forestry mosaic in southern Bahia},
journal = {Biological Conservation},
year = {2009},
volume = {142},
pages = {1178--1190},
number = {6},
publisher = {Elsevier}



  author = {Pardini, Renata AND Bueno, Adriana de Arruda AND Gardner, Toby A. AND Prado, Paulo Inácio AND Metzger, Jean Paul},
  journal = {PLoS ONE},
  publisher = {Public Library of Science},
  title = {Beyond the Fragmentation Threshold Hypothesis: Regime Shifts in Biodiversity Across Fragmented Landscapes},
  year = {2010},
  month = {10},
  volume = {5},
  url = {http://dx.doi.org/10.1371%2Fjournal.pone.0013666},
  pages = {e13666},
  number = {10},
  doi = {10.1371/journal.pone.0013666}



author = {Ribeiro, D.B. and Prado, P.I. and Brown Jr, K.S. and Freitas, A.V.L.},
title = {Additive partitioning of butterfly diversity in a fragmented landscape:
importance of scale and implications for conservation},
journal = {Diversity and Distributions},
year = {2008},
volume = {14},
pages = {961--968},
number = {6},
publisher = {John Wiley \& Sons},



engl/tutorials/rcode.txt · Última modificação: 2024/01/09 18:33 por
Alterações recentes · Índice · Mostrar código fonte ·  Error: Undefined constant "AUTH_WRITE"

Error: Undefined constant "AUTH_WRITE"

An unforeseen error has occured. This is most likely a bug somewhere.

More info has been written to the DokuWiki error log.