Code Monkey home page Code Monkey logo

agave-growth's Introduction

Analyses of Agave palmeri growth and survivorship

This repository holds code and data for analyses of a variety of treatments investigating the relationship between Lehmann lovegrass, Eragrostis lehmanniana, and Palmer's agave, Agave palmeri.

The primary questions are:

  1. How do various treatments affect agave survival and growth, where: a. agave-survival: survival is measured by whether an individual plant survived the experiment, and b. agave-growth: growth is measured by the number of leaves from three plants in a row
  2. How do a subset of treatments affect percent cover of Lehman lovegrass, considering also: a. lovegrass-cover-pa: presence or absence of an agave b. lovegrass-cover-size: size of agave, when present

Bold text above indicates the file-naming strategy used for this project. Scripts and output files use the bolded font as the prefix and descriptor of script / output contents as the suffix. i.e. the script agave-survival-analysis.R runs the analyses for 1a, above, and outputs the results of statistical tests to output/agave-survival-analysis-out.csv. The script agave-survival-boxplot.R creates an accompanying boxplot for 1a and saves the PNG file to output/agave-survival-boxplot.png.

Dependencies

  • broom.mixed, formatting of statistical output
  • car, Levene test of homoscedasticity
  • dplyr, data wrangling
  • emmeans, post-hoc, pairwise comparisons
  • extrafont, data visualization
    • to avoid errors with ggsave will need to run extrafont::font_import()
  • ggplot2, data visualization
  • lme4, glmer logistic models
  • stringr, formatting of statistical output

Organization

  • Scripts for running analyses and saving results to files, as well as scripts for creating data visualizations are in the top-level directory. Also in the top-level directory is the data cleaning script (data-preparation.R), which standardized variable names and values. Early development on this work was done in an RMarkdown file, agave-lovegrass-report.Rmd; the file remains, but much of the analyses are deprecated, corresponding to appropriate files in this top-level directory.

  • data: raw and tidied data

  • functions: custom functions for assistance with data visualization

  • output: results of statistical analyses and data visualization files

agave-growth's People

Contributors

jcoliver avatar

Stargazers

 avatar

Watchers

 avatar  avatar

agave-growth's Issues

Update size to poisson models

Agave size is measured in number of leaves (count data), so it is more appropriate in models where size is the response variable to treat it as Poisson-distributed response.

Add indicator(s) of significant pairwise comparisons

Manuscript mentions that H and W treatments reduced lovegrass cover. Find out which comparisons are actually significant and add such indications to boxplot (like a bracket spanning pairwise comparisons). See lovegrass-cover-pa-boxplot.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.