Skip to content

Instantly share code, notes, and snippets.

@dlebauer
Created November 23, 2020 22:01
Show Gist options
  • Save dlebauer/1a280f3f6d4b3e0276f8e4570ebc9d04 to your computer and use it in GitHub Desktop.
Save dlebauer/1a280f3f6d4b3e0276f8e4570ebc9d04 to your computer and use it in GitHub Desktop.
---
title: "Meta analysis plot organization"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## Lets look at what MA outputs look like
```{r explore the directory}
library(PEcAn.settings)
# pecan.xml <- '/home/kristinariemer/biocro_darpa_me034_results/pecan.xml'
# settings <- PEcAn.settings::read.settings(pecan.xml)
# pft_outdir <- settings$pfts$pft$outdir
pft_outdir <- '/home/kristinariemer/biocro_darpa_me034_results_april2020/pft/SetariaWT_ME034'
dir(pft_outdir)
```
```{r explore the directory}
library(ggplot)
library(ggmcmc)
setwd(pft_outdir)
load('trait.data.Rdata',
'prior.distns.Rdata',
'post.distns.MA.Rdata',
'trait.mcmc.Rdata')
traits <- rownames(prior.distns)
traits_with_data <- unique(trait_data$vname)
for(trait %in% traits){
ggmcmc::ggs_caterpillar(trait.mcmc[[trait]])
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment