Git Product home page Git Product logo

simriv's Introduction

SiMRiv (R package) CRAN_Status_Badge License: GPL v3 Downloads Total downloads Travis-CI Build Status

Individual-based simulation of multistate movements in rivers, heterogeneous and homogeneous spaces incorporating local landscape bias in R.

Available on CRAN, can be directly installed from within R.

Provides functions to generate and analyze spatially-explicit individual-based multistate movements in rivers, heterogeneous and homogeneous spaces. This is done by incorporating landscape bias on local behaviour, based on resistance rasters. Although originally conceived and designed to simulate trajectories of species constrained to linear habitats/dendritic ecological networks (e.g. river networks), the simulation algorithm is built to be highly flexible and can be applied to any (aquatic, semi-aquatic or terrestrial) organism, independently on the landscape in which it moves. Thus, the user will be able to use the package to simulate movements either in homogeneous landscapes, heterogeneous landscapes (e.g. semi-aquatic animal moving mainly along rivers but also using the matrix), or even in highly contrasted landscapes (e.g. fish in a river network). The algorithm and its input parameters are the same for all cases, so that results are comparable.

Simulated trajectories can then be used as mechanistic null models (Potts & Lewis 2014) to test a variety of 'Movement Ecology' hypotheses (Nathan et al. 2008), including landscape effects (e.g. resources, infrastructures) on animal movement and species site fidelity (Powell 2000), or for predictive purposes (e.g. road mortality risk, dispersal/connectivity). The package should be relevant to explore a broad spectrum of ecological phenomena, such as those at the interface of animal behaviour, management, landscape and movement ecology, disease and invasive species spread, and population dynamics.

simriv's People

Contributors

lontrenzo avatar miguel-porto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simriv's Issues

Please remove dependencies on **rgdal**, **rgeos**, and/or **maptools**

This package depends on (depends, imports or suggests) raster and one or more of the retiring packages rgdal, rgeos or maptools (https://r-spatial.org/r/2022/04/12/evolution.html, https://r-spatial.org/r/2022/12/14/evolution2.html). Since raster 3.6.3, all use of external FOSS library functionality has been transferred to terra, making the retiring packages very likely redundant. It would help greatly if you could remove dependencies on the retiring packages as soon as possible.

Using state to specify animal step length

The documentation for the designation of a movement state for a species suggests that the steplen passed to state() will generate a distribution of step lengths that are truncated at the value passed to the function (values less than that steplen will be used). However, upon plotting the results of the simulation, it appears that the value passed to state for steplen is used as a lower bound, and step lengths equal to or greater than the value passed to the function are generated.

This is for a simulation with a resistance layer that has the same, low level of resistance across all bodies of water.

Prepare for multicore

Use OMP better! Current implementation is disabled cause it doesn't make much difference.

Error in documentation of adjustModel

The example in adjustModel help seems broken.
The line
sol <- adjustModel(real.data, species.model, resol = 20, nbins.hist = c(3, 3), step.hist.log = TRUE)
is not working and give the following error :

Error in if (nbins.hist[3] > 0) { : missing value where TRUE/FALSE needed

It works if we add a third value to nbins.hist arguments as follows:
sol <- adjustModel(real.data, species.model, resol = 20, nbins.hist = c(3, 3, 3), step.hist.log = TRUE)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.