Package: AnimalHabitatNetwork 0.1.0

Peng He

AnimalHabitatNetwork: Networks Characterising the Physical Configurations of Animal Habitats

Functions for generating and visualising networks for characterising the physical attributes and spatial organisations of habitat components (i.e. habitat physical configurations). The network generating algorithm first determines the X and Y coordinates of N nodes within a rectangle with a side length of L and an area of A. Then it computes the pair-wise Euclidean distance Dij between node i and j, and then a complete network with 1/Dij as link weights is constructed. Then, the algorithm removes links from the complete network with the probability as shown in the function ahn_prob(). Such link removals can make the network disconnected whereas a connected network is wanted. In such cases, the algorithm rewires one network component to its spatially nearest neighbouring component and repeat doing this until the network is connected again. Finally, it outputs an undirected network (weighted or unweighted, connected or disconnected). This package came with a manuscript on modelling the physical configurations of animal habitats using networks (in preparation).

Authors:Peng He [aut, cre], Damien R. Farine [ths]

AnimalHabitatNetwork_0.1.0.tar.gz
AnimalHabitatNetwork_0.1.0.tar.gz(r-4.5-noble)AnimalHabitatNetwork_0.1.0.tar.gz(r-4.4-noble)
AnimalHabitatNetwork_0.1.0.tgz(r-4.4-emscripten)AnimalHabitatNetwork_0.1.0.tgz(r-4.3-emscripten)
AnimalHabitatNetwork.pdf |AnimalHabitatNetwork.html
AnimalHabitatNetwork/json (API)

# Install 'AnimalHabitatNetwork' in R:
install.packages('AnimalHabitatNetwork', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

1.70 score 1 scripts 237 downloads 3 exports 30 dependencies

Last updated 5 years agofrom:3db57b2f2f. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKDec 18 2024
R-4.5-linuxOKDec 18 2024

Exports:ahn_genahn_plotahn_prob

Dependencies:clicolorspacecpp11fansifarverggplot2gluegtableigraphisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigR6RColorBrewerrlangscalestibbleutf8vctrsviridisLitewithr