Just placeholder-ish for now.
Installation
If you haven’t already, make sure to install the acre using devtools.
Reading in data
The first step is to combine all of these data sources together into an R object using the read.acre() function. It is your job to create this object. There are five arguments you’ll need to use:
captures: the data frame with the detection data. traps: the object with the listening post locations.control.mask: you need to specify the maximum distance at which you can possibly detect a gibbon. In this case, the maximum feasible distance is 3000m. Usecontrol.mask = list(buffer = 3000)for this argument.loc.cov: a data frame with columns x and y, specifying locations at which spatial covariates have been measured, and then a further column for each spatial covariates themselves. For this step you should provide the data frame containing the measured covariate values, rather than the interpolated values. The function will complete the interpolation for you.dist.cov: a data frame containing locations of objects of interest, from which you want to construct a spatial covariate for the distance to the nearest object. This needs to be a list, where each component name relates to the type of object, and the component itself is a data frame with columns named x and y specifying the locations of these objects. In this case, we just have to obtain the distance to the nearest village for each point in PPWS, so you can usedist.cov = list(village = villages.df).
Visualizing data
Multiple exploratory plotting tools available.
See…
plot(data.acre, type = "survey")plot(data.acre, type = "capt")plot(data.acre, type = "covariates")
Fitting models
Maybe fit a basic model here? I think that in this introduction we should definitely use an IHD example, but maybe one that is as simple as possible?
Just because being able to plot the detection surface, and seeing how it varies is super neat, rather than just one uniform-coloured detection surface blob.
fit <- fit.acre(data.acre)summary(fit)plot(data.acre, type = "detfn")plot(data.acre, type = "Dsurf")
More…(not sure what to title this section)
Here explain all the additional functionality provided, and then suggest seeing the tutorials for further guidance?