Created
November 23, 2020 22:01
-
-
Save dlebauer/1a280f3f6d4b3e0276f8e4570ebc9d04 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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