histniche {adehabitat}R Documentation

Histograms of the Ecological Niche

Description

histniche draws histograms of the variables mapped in an object of class kasc (habitat available for the species). The histograms of the habitat used by a species (i.e. the niche) are computed from the locations of the focus species, and are added to the plot of available habitat for each variable, for comparison.

Usage

histniche(kasc, pts, type = c("h", "l"), adjust = 1,
          Acol, Ucol, Aborder, Uborder, Alwd = 1, Ulwd = 1, ...)

Arguments

kasc a raster map of class kasc
pts a data frame with two columns, giving the coordinates of the species locations
type what type of plot should be drawn. Possible types are:
* "h" for histograms,
* "l" for kernel density estimates (see ?density).
By default, type = "h" is used. If type = "l" is used, the position of the mean of each distribution is indicated by dotted lines
adjust if type = "l", a parameter used to control the bandwidth of the density estimate (see ?density)
Acol color for the histograms of the available pixels
Ucol color for the histograms of the used pixels
Aborder if type = "h", color for the border of the histograms of the available pixels (see help(hist.default))
Uborder if type = "h", color for the border of the histograms of the used pixels (see help(hist.default))
Alwd if type = "l", line width for the density estimate of the available pixels
Ulwd if type = "l", line width for the density estimate of the used pixels
... further arguments passed to or from other methods

Author(s)

Mathieu Basille basille@biomserv.univ-lyon1.fr

Examples

## Not run: 
## Example with factors and numeric variables
data(puechabon)
histniche(puechabon$kasc, puechabon$locs[, c("X", "Y")])

## Aspect is a factor, then it's not possible to use 
## kernel density estimates for it :
histniche(puechabon$kasc, puechabon$locs[, c("X", "Y")], type = "l")
## End(Not run)

[Package adehabitat version 1.4-1 Index]