Giter Site home page Giter Site logo

timnewbold / biomespecificresponsespublic Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 4.0 40 KB

A public release of the code used in the paper "Tropical and Mediterranean biodiversity is disproportionately sensitive to land-use and climate change"

R 100.00%

biomespecificresponsespublic's Introduction

BiomeSpecificResponsesPublic

A public release of the code used in the paper "Tropical and Mediterranean biodiversity is disproportionately sensitive to land-use and climate change"

Produced by Tim Newbold, with inputs from Philippa Oppenheimer, Jessica Williams and Adrienne Etard.

A note on data availability

All of the data required to replicate the main analyses are published (DOI: 10.6084/m9.figshare.12674372).

The raw range maps required to run stage 17 (CalculateMeanRangeMap) cannot be made publicly available. Therefore, for this public release the output of this stage (MeanRangeSizeMap.rds) has been included instead in the input data directory, and the code that requires this map has been amended accordingly. The code for stage 17 has nevertheless been included for inspection. If you wish to run this stage, please email me.

Running the code

Prior to running each stage of the analysis, you need to create a folder with the same name as the R script (minus the extension). E.g. 1_PrepareDiversityData for the first stage

Most stages take less than 10 minutes to run, with the exception of the following (time estimates are based on run time for a very good laptop computer):

  • 4_RunModels: 3 hours
  • 5_RunFinalModels: 11 minutes
  • 15_RunExplanatoryModels: 9 hours
  • 18_RunExplanatoryModelsClimate: 1 hour

Required packages

The following packages need to be installed prior to running this analysis pipeline (available on CRAN unless specified):

  • arm
  • Formula
  • ggplot2
  • Hmisc
  • lattice
  • lme4
  • maptools
  • MASS
  • Matrix
  • mgcv
  • nlme
  • predictsFunctions (available via Github)
  • raster
  • RColorBrewer
  • rgdal
  • sf
  • snow
  • sp
  • spData
  • spdep
  • StatisticalModels (available via Github)
  • survival

biomespecificresponsespublic's People

Contributors

timnewbold avatar

Stargazers

Leonardo H. Teixeira avatar Ugyen Penjor avatar  avatar Adam Zhou avatar Peggy Bevan avatar  avatar Kostas Kougioumoutzis avatar

Watchers

 avatar James Cloos avatar

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.