knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
Camtraptor is an R package to read, explore and visualize Camera Trap Data Packages (Camtrap DP). Camtrap DP is a community developed data exchange format for this type of data. With camtraptor you can read and filter data, create overviews of observed species, relative abundance or effort, and plot these data on a map.
Camtraptor currently uses the legacy Camtrap DP 0.1.6 for its internal data model. read_camtrap_dp()
will automatically down-convert Camtrap DP 1.0 datasets to that legacy model to avoid introducing breaking changes. The downside is that some newer properties like deployments.cameraDepth
, media.filePublic
and observations.eventEnd
are removed when reading data.
The upcoming camtraptor v1.0 will update the internal data model to Camtrap DP 1.0 and drop support for Camtrap DP 0.1.6. This is a breaking change that will be accompanied by a number of other major changes. Future versions of camtraptor will always use the latest version of Camtrap DP and up-convert legacy datasets to that model.
To get started, see:
You can install the development version of camtraptor from GitHub with:
# install.packages("devtools") devtools::install_github("inbo/camtraptor")
While we support older versions of R up to 3.5, we recommend using R 4.0.0 or higher.
Get the taxonomic coverage for an example Camera Trap Data Package mica
:
library(camtraptor) get_species(mica)
Filter observations in mica
on female mallards and map the number of individuals per deployment location:
map_dep( mica, feature = "n_individuals", species = "Anas platyrhynchos", sex = "female" )
Camtraptor provides and bundles much needed functionality to read, explore and visualize Camera Trap Data Packages. Over time we hope to include some or all of this functionality in widely used R packages such as camtrapR and activity.
citation("camtraptor")
.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.