histniche {adehabitat} | R Documentation |
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.
histniche(kasc, pts, type = c("h", "l"), adjust = 1, Acol, Ucol, Aborder, Uborder, ...)
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) ) |
... |
further arguments passed to or from other methods |
Mathieu Basille basille@biomserv.univ-lyon1.fr
## Not run: ## Example with factors and numeric variables data(puechabon) histniche(puechabon$kasc, puechabon$locs[, c("X", "Y")]) histniche(puechabon$kasc, puechabon$locs[, c("X", "Y")], type = "l") ## End(Not run)