shar: Species-Habitat Associations

Analyse species-habitat associations in R. Therefore, information about the location of the species (as a point pattern) is needed together with environmental conditions (as a categorical raster). To test for significance habitat associations, one of the two components is randomized. Methods are mainly based on Plotkin et al. (2000) <doi:10.1006/jtbi.2000.2158> and Harms et al. (2001) <doi:10.1111/j.1365-2745.2001.00615.x>.

Version: 2.0.0
Depends: R (≥ 3.1.0)
Imports: classInt, graphics, grDevices, methods, spatstat.core, spatstat.geom, spatstat.random, stats, terra, utils
Suggests: covr, dplyr, getCRUCLdata, ggplot2, future, future.apply, knitr, patchwork, rgbif, rgdal, rmarkdown, rnaturalearth, rnaturalearthdata, sf, spatstat (≥ 2.0.0), testthat (≥ 2.1.0)
Published: 2022-09-21
Author: Maximillian H.K. Hesselbarth ORCID iD [aut, cre], Marco Sciaini ORCID iD [aut], Zeke Marshall ORCID iD [ctb], Thomas Etherington ORCID iD [ctb]
Maintainer: Maximillian H.K. Hesselbarth <mhk.hesselbarth at>
License: GPL (≥ 3)
NeedsCompilation: no
Citation: shar citation info
Materials: NEWS
CRAN checks: shar results


Reference manual: shar.pdf
Vignettes: Get started


Package source: shar_2.0.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): shar_2.0.0.tgz, r-oldrel (arm64): shar_2.0.0.tgz, r-release (x86_64): shar_2.0.0.tgz, r-oldrel (x86_64): shar_2.0.0.tgz
Old sources: shar archive


Please use the canonical form to link to this page.