histniche             package:adehabitat             R Documentation

_H_i_s_t_o_g_r_a_m_s _o_f _t_h_e _E_c_o_l_o_g_i_c_a_l _N_i_c_h_e

_D_e_s_c_r_i_p_t_i_o_n:

     '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.

_U_s_a_g_e:

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

_A_r_g_u_m_e_n_t_s:

    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

_A_u_t_h_o_r(_s):

     Mathieu Basille basille@biomserv.univ-lyon1.fr

_E_x_a_m_p_l_e_s:

     ## 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)

