Giter Site home page Giter Site logo

nussaibahrs / ooet2021 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 34.21 MB

Archived code for Raja and Kiessling (2021) Out of the extratropics: Out of the extratropics: the evolution of the latitudinal diversity gradient of Cenozoic marine plankton

License: GNU General Public License v3.0

R 41.49% Python 50.80% C++ 6.32% SWIG 0.55% Shell 0.84%
marine-plankton dispersal tropics biodiversity paleontology

ooet2021's Introduction

The evolution of the latitudinal diversity gradient of Cenozoic marine plankton

Nussaïbah B. Raja & Wolfgang Kiessling

Description

This repository contains all R scripts (in /scripts) necessary to evaluate the diversification dynamics and selectivity in, and the dispersal of marine plankton over the last 66 million years. The original data files can be downloaded at http://doi.org/10.17605/OSF.IO/NGK54. They were not included in the repository due to file size limits. Please download the data files and replace the contents of the data folder. The outputs of the scripts are provided in the /output and figures in the /figs folder. Please cite the study as:

Raja NB, Kiessling W. 2021 Out of the extratropics: the evolution of the latitudinal diversity gradient of Cenozoic marine plankton. Proc. R. Soc. B 20210545. https://doi.org/10.1098/rspb.2021.0545

Requirements

This code was developed in R 4.0.0. It is therefore recommended to use the same or any more up-to-date version of R for reproducing the analyses in this study.

Setup

You will need to either use the Rstudio project environment or set your working directory to the root of this folder.

To install all required depdendencies (packages), run:

source(file.path("inst","dependencies.R"))

Scripts

The scripts/ folder contains all the code generated for the above mentioned study. The folder contains 5 R scripts and two additional folders, namely, utils which contains scripts for custom functions and paramters used for plotting and supplementary that contains additional scripts for the results in the Supplementary Online Material in the study (Available here: https://royalsocietypublishing.org/doi/suppl/10.1098/rspb.2021.0545). The scripts are numbered in the order in which they should be run.

  • 01-prepare_data.R: This script prepared the data files to be used in the analyses from the original download from the Nepture Database. It calculates the first appearance datum and last appearance datum of each species. It also categorises each occurrence into the tropics and extratropics, and calculate when dispersal from one zone to the other may have happened.

  • 02-analysis_diversity_dynamics.R: This script calculates the diversity of marine plankton over the last 66 million years per climate zone and hemisphere.

  • 03-analysis_LDG_div_overall.R: This script calculates the latitudinal diversity gradients for marine plankton over the last 66 million years, divided into climate phases.

  • 04a-preferences_migration.R: This script calculates origination, extinction and diversitfication preferences, and dispersal proportions across climate zones over the last 66 million years, divided into climate phases.

  • 04b-plot_prefs_and_migration.R: This script generates the plots of origination, extinction and diversitfication preferences, and dispersal proportions across climate zones over the last 66 million years, divided into climate phases, as per the analyses in 04a-preferences_migration.R.

Troubleshooting

The issue tracker is the preferred channel for bug reports. You may also contact me by email.

ooet2021's People

Contributors

nussaibahrs avatar

Watchers

 avatar  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.