responseplot.abund: plot the response of an abundance model to the change of...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Plotfunctions.R

Description

This function takes a diversityoccupancy object and one of the variables used to predict abundance, and makes a plot showing the response of occupancyt against the selected variable. This function automatically limits the values of that variable to the maximum and minimum values of the dataset.

Usage

1
responseplot.abund(batch, spp, variable)

Arguments

batch

A result from the diversityoccu function.

spp

The species number of which response is going to be ploted.

variable

The variable of which the response is to be ploted.

Value

a ggplot object plotting the alpha diversity response to the selected variable.

Author(s)

Derek Corcoran <derek.corcoran.barrios@gmail.com>

See Also

batchoccu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
data("IslandBirds")
data("Daily_Cov")
data("siteCov")

#Model the abundance for 5 bird species and calculate alpha diversity from that

BirdDiversity <-diversityoccu(pres = IslandBirds, sitecov = siteCov,
obscov = Daily_Cov,spp = 5, form = ~ Day + Wind + Time + Rain +
Noise ~ Elev + AgroFo + SecVec + Wetland + Upland)

#plot the response of abundance to individual variables for species 4, 11

responseplot.abund(batch = BirdDiversity, spp = 4, variable = Elev)

responseplot.abund(batch = BirdDiversity, spp = 11, variable = Elev)

## End(Not run)

DiversityOccupancy documentation built on May 2, 2019, 12:35 p.m.