responseplot.occu: plot the response of an occupancy model to the change of...

Description Usage Arguments Value Author(s) See Also Examples

Description

This function takes a batchoccupancy object and one of the variables used to predict occupacy, 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.occu(batch, spp, variable, N = 50)

Arguments

batch

A result from the batchoccu function.

spp

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

variable

The variable of which the response is to be ploted.

N

The number of points used to make the plot (default is 20) the greater the number, the clearer will be the response, but it will make the plot slower

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
## Not run: 
data("IslandBirds")
data("Daily_Cov")
data("siteCov")
BirdOccupancy <-batchoccu(pres = IslandBirds, sitecov = siteCov, obscov =
Daily_Cov, spp = 5, form = ~ Day + Wind + Noise + Clouds ~
Elev + AgroFo + SecVec + Wetland)
#plot the response of occupancy to individual variables for species 4 and 5

responseplot.occu(batch = BirdOccupancy, spp = 4, variable = "Elev")


responseplot.occu(batch = BirdOccupancy, spp = 5, variable = "Elev")

## End(Not run)

derek-corcoran-barrios/DiversityOccu documentation built on Nov. 12, 2019, 7:31 p.m.