generico: generico

Description Usage Arguments Details Value Author(s) References Examples

Description

generico plots direct ordination of species abundances.

Usage

1
generico(tabela, gradiente, at, grad, eixoY, eixoX)

Arguments

tabela

Species data (object class: data.frame). Species in columns.

gradiente

Vector with the environmental gradient for each row of the species table. Can only be a continuous variable i.e. factors will not work.

at

Used to alter plotted position of the species names. Start with 1 and increase until obtain desired location.

grad

Character of the name of the environmental gradient to appear on the graph.

eixoY

Name of y axis legend (character)

eixoX

Name of x axis legend (character)

Details

Ported from: https://ppbio.inpa.gov.br/sites/default/files/Generico%20R . Tried and tested code used to develop package and github. Plots the standardized relative abundance of species in samples ordered in relation to an environmental gradient. Species are plotted seperately. This ordering provides visual representation of the counts of different species that enables a clearly interpretable comparison of which species are found at the extremes of a gradient or occur through the range. Most effective with relatively few species (i.e. < 30).

The function is not general. It is not possible for users to ajust graphical parameters. This means that the graph presented is unlikely to be correct for publication. Function code is likely to need adaptation for specific use cases (e.g. more or less species). Used to teach students how to adapt code from existing functions.

Value

Function generico plots bar charts of species abundances from sites ordered along an environmental gradient.

Author(s)

Created by Victor Lemes Landeiro. Updated 18-07-2008.

References

Examples of use:

Norris, D. et al. 2016. Too rare for non-timber resource harvest? Meso-scale composition and distribution of arborescent palms in an Amazonian sustainable-use forest. Forest Ecology and Management 377: 182-191. http://dx.doi.org/10.1016/j.foreco.2016.07.008 .

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# load species and environmental data
library(vegan) 
data(mite, mite.env)
dfsp <- mite[,1:10] #select first 10 mite species 

#plot 
generico(tabela = dfsp, gradiente = mite.env$WatrCont,
at=80,grad = "Water",eixoX="Site", eixoY="Count") 

## End(Not run)

darrennorris/rppbio documentation built on May 14, 2019, 6:11 p.m.