Giter VIP home page Giter VIP logo

plague-wna's Introduction

Mapping plague in the western United States

This repository contains the R scripts for Carlson, Bevins, and Schmid (2021) "Plague risk in the western United States over seven decades of environmental change", preprint forthcoming on bioRxiv. Primary data are available on reasonable request, while environmental data are all freely and openly available from public sources.

There's also a copy of the preprint available that's been compressed for legibility, as the main preprint is nearly impossible to scroll through due to the number of high-resolution maps and figures.

Scripts are organized into seven folders marking different stages of the pipeline:

A: Prepare data
β”œβ”€ A1 Re-rasterize rodents.R
β”œβ”€ A2 Soil macronutrient kriging.R
└─ A3 SoilGrids resampling.R

B: Extract and generate model datasets
β”œβ”€ B1 Process and load environmental layers.R
β”œβ”€ B2 Extract NWDP data.R
└─ B3 Extract human data.R

C: Main models and attribution models
β”œβ”€ C0 Reload environment.R
β”œβ”€ C1 Wildlife baseline model.R
β”œβ”€ C2 Human baseline model.R
β”œβ”€ C3 Wildlife attribution model.R
└─ C4 Human attribution model.R

D: Data visualization
β”œβ”€ D1 Main figures.R
β”œβ”€ D2 Partial dependence multipanel.R
β”œβ”€ D3 Ternary.R
β”œβ”€ D4 Variable importances.R
β”œβ”€ D5 Alternate model maps.R
β”œβ”€ D6 Spartials.R
β”œβ”€ D7 Alternate model 1 partial figures.R
└─ D8 pH GAMs.R

E: Cross-validation on withheld data
└─ E1 Cross-validation 2000 to 2005.R

F: Generate alternate datasets
β”œβ”€ F1 Wildlife Alt2 Pseudoabsences.R
└─ F2 Wildlife Alt3 Just coyote.R

G: Alternate models
β”œβ”€ G0 Reload environment - alt for elevation.R
β”œβ”€ G1 Wildlife Alt1 full variables.R
β”œβ”€ G2 Human Alt2 full variables.R
β”œβ”€ G3 Wildlife Alt2 pseudoabsences.R
└─ G4 Wildlife Alt3 coyote model.R

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.