histniche | R Documentation |
histniche
draws histograms of the niche-environment system: an
histogram of the available resource units (environment) is drawn on
the same graph as an histogram of the used resource units (i.e. the
niche), for comparison.
histniche(x, pr, type = c("h", "l"), adjust = 1,
Acol, Ucol, Aborder, Uborder, Alwd = 1,
Ulwd = 1, ylim, ncla = 15, ...)
x |
a data frame giving the value of environmental variables (columns) in resource units (rows, e.g. the pixels of a raster map) |
pr |
a vector of integers with the same length as |
type |
what type of plot should be drawn. Possible types are: |
adjust |
if |
Acol |
color for the histograms of the available pixels |
Ucol |
color for the histograms of the used pixels |
Aborder |
if |
Uborder |
if |
Alwd |
if |
Ulwd |
if |
ylim |
the limits for the y axis |
ncla |
The number of classes of the histogram |
... |
further arguments passed to or from other methods |
Mathieu Basille basille@ase-research.org
## Not run:
data(puechabonsp)
cp <- count.points(puechabonsp$relocs, puechabonsp$map)
puechabonsp$map
histniche(slot(puechabonsp$map, "data"), slot(cp, "data")[,1])
histniche(slot(puechabonsp$map, "data"), slot(cp, "data")[,1],
ty="l")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.