histniche: Histograms of the Ecological Niche of a Species
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.
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,
adjust
if type = "l", a parameter used to control the
bandwidth of the density estimate (see ?density)
## Example with factors and numeric variablesdata(puechabon)
histniche(puechabon$kasc, puechabon$locs[, c("X", "Y")])
histniche(puechabon$kasc, puechabon$locs[, c("X", "Y")], type = "l")