variogram_intraTransect: Build a variogram object

View source: R/variogram_intraTransect.R

variogram_intraTransectR Documentation

Build a variogram object

Description

Create an object of class variogram (output of variog) and gives distance matrix and a diagnostic graph if asked.

Usage

variogram_intraTransect(
  segdata_obs,
  obs,
  esw,
  intraTransect = T,
  breaks = NULL,
  plot = TRUE,
  pairs.min = 100,
  n_sim = 100,
  distmat = NULL,
  region = NULL,
  esp = "species"
)

Arguments

segdata_obs

data.frame. Output of ajout_obs.

obs

character. Choose what kind obs observation is analyzed, "n_ind" : number of individuals counted or "n_detection" number of detection.

esw

Effective (half) Strip-Width determined by plot_detection.

intraTransect

Boolean. Consider only distance between point on the same segment for the kriging distance ?

breaks

Breaks point of the variogram. Default is NULL which create default breaks : c(-0.01, 0.001, 1, seq(2.5, 100, 2.5)).

plot

Boolean. Get diagnostic plot in output (default is TRUE).

pairs.min

(default is 100)

n_sim

(default is 100)

distmat

Object of class matrix giving distance matrix

region

Region of segdata_obs on which adjusting function. Default is NULL, meaning it takes all the regions in segdata_obs

esp

Species name for graph title.

Value

Gives a list of :

  1. variogram : object of class variogram

  2. g : coefficient of variation of esw in percent.

  3. distmat : Barplot of detections depending of distance, with confindence estimated with mcmc chains.


MathieuGenu/geffaeR documentation built on March 23, 2022, 7:50 p.m.