Giter Site home page Giter Site logo

archaeo-programmer / paleomat Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 714.09 MB

paleoMAT: Paleotemperature Reconstruction from Pollen using the Modern Analog Technique

License: Other

R 0.26% Rez 0.01% HTML 99.74%
archaeology mat palaeoecology paleoclimate r reproducibility climate paleoclimate-reconstruction paleoclimatology palynology

paleomat's Introduction

DOI

paleoMAT: Paleotemperature Reconstruction from Pollen using the Modern Analog Technique

paleoMAT is an R package implementing functions to perform temporal paleoclimate reconstruction from pollen using the MAT (Modern Analog Technique).

This is the official R package for paleoMAT, which contains all code associated with the analyses described and presented, including figures and tables, in Gillreath-Brown et al. 2024:

Gillreath-Brown, A., R. K. Bocinsky, and T. A. Kohler (2024). A Low-Frequency Summer Temperature Reconstruction for the United States Southwest, 3000 BC โ€“ AD 2000. The Holocene. https://doi.org/10.1177/09596836231219482

All code for analysis and reconstruction is in UUSS_MAT_Reconstruction.Rmd and all code for figures and tables is in Paleomat_Figures.Rmd.

Installation

You can install paleoMAT from GitHub with these lines of R code (Windows users are recommended to install a separate program, Rtools, before proceeding with this step):

if (!require("devtools")) install.packages("devtools")
devtools::install_github("Archaeo-Programmer/paleomat")

Repository Contents

The ๐Ÿ“ vignettes directory contains:

How to Run the Code?

To reproduce the analysis, output, figures, and tables, you will need to clone the repository. To clone the repository, you can do the following from your Terminal:

git clone https://github.com/Archaeo-Programmer/paleomat.git
cd paleomat

After installing the paleoMAT package (via install_github as shown above or by using devtools::install()), then you can render the analysis, visualizations, and tables. You can compile the paleoMAT analysis within R by entering the following in the console:

rmarkdown::render(here::here('vignettes/UUSS_MAT_Reconstruction.Rmd'), output_dir = here::here('vignettes'))

You can also compile the figures and tables from the paleoMAT analysis within R by entering the following in the console:

rmarkdown::render(here::here('vignettes/Paleomat_Figures.Rmd'), output_dir = here::here('vignettes'))

If you do not want to compile the R Markdowns, then you can retrieve a readable HTML file by navigating to UUSS_MAT_Reconstruction.html. Then, click "Raw" and save the file as "UUSS_MAT_Reconstruction.html" (i.e., save file with .html extension or as HTML file type). Another option, after installing the paleoMAT package, is to use rstudioapi::viewer in the R console:

rstudioapi::viewer(here::here('vignettes/UUSS_MAT_Reconstruction.html'))

Another option for reproducing the results is to use the package itself and follow along with the vignette, UUSS_MAT_Reconstruction. Data and functions are already loaded into the package. There are also comments that point to output saved in the ๐Ÿ“ data directory and the ๐Ÿ“ vignettes data directory. The purpose of the output files in ๐Ÿ“ vignettes data directory was to save various stages of output throughout the analysis. So, if there is a chunk of code that you do not want to run, then you can run the accompanying commented out line to read in each variable. However, if you want to run the code yourself, then you can just ignore these commented lines of code.

Licenses

Code: GNU GPLv3

Data: CC-0 attribution requested in reuse

Acknowledgements

This material is based upon work supported by the National Science Foundation under Grants SMA-1637171 and SMA-1620462, and by the Office of the Chancellor, Washington State University-Pullman. Data were obtained from the Neotoma Paleoecology Database on October 23, 2021 using the neotoma 1.0 R package and its constituent database(s) (North American Pollen Database). The work of data contributors, data stewards, and the Neotoma community is gratefully acknowledged.

paleomat's People

Contributors

archaeo-programmer avatar bocinsky avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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