Giter VIP home page Giter VIP logo

stomata-ilima's Introduction

stomata-ilima

This repository contains source code associated with the manuscript:

Amphistomy increases leaf photosynthesis more in coastal than montane plants of Hawaiian ʻilima (Sida fallax). Accepted at The American Journal of Botany.

Author contributions

Genevieve Triplett and Chris Muir contributed equally to all stages of this project; Tom Buckley contributed to development of the method and helped edit the manuscript.

Contents

This repository has the following file folders:

  • figures: figures generated from original artwork and R code
  • objects: saved objects generated from R code
  • processed-data: processed data generated from R code
  • ms: manuscript input (e.g. ms.qmd, si.qmd and stomata-ilima.bib) and output (e.g. ms.pdf, si.pdf) files
  • r: R scripts for all data processing and analysis
  • raw-data: raw data files

Prerequisites:

To run code and render manuscript:

  • R version >4.3.0 and RStudio (recommended)
  • LaTeX: you can install the full version or try tinytex
  • GNU Make: In terminal, you can just type make paper to render the manuscript. You can also use it to re-run all scripts.

Before running scripts, you'll need to install the following R packages:

source("r/install-packages.R")

To fit brms model, set up cmdstanr.

Downloading data and code

  1. Download or clone this repository to your machine.
git clone [email protected]:cdmuir/stomata-ilima.git
  1. Open stomata-ilima.Rproj in RStudio

Rendering manuscript

Software requirements

At minimum, you will need R version 4.3.0 or greater installed on your machine. Install additional packages by running r/install-packages.R.

Rendering manuscript with pre-saved outout

Open ms/ms.qmd and knit using RStudio.

You can also run the following code from the terminal:

quarto render ms/ms.qmd
quarto render ms/si.qmd

or use make

make paper

Generating all results

You can re-run all analyses, figures, etc. using GNU make. Type make --version in a terminal/shell to see if it is already installed.

# Clear out previously saved output
make cleanall
# This will take a long time to run
make

stomata-ilima's People

Contributors

cdmuir avatar

Watchers

 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.