Skip to content

Commit

Permalink
ready for re-submission
Browse files Browse the repository at this point in the history
  • Loading branch information
stineb committed Feb 23, 2022
1 parent 3635c7e commit 619481c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ Code of this repository is published under a GPL v3 license.
## Important files

- `workflow.Rmd`: Outlines all steps for the global analysis. Implements plotting of published figures. Computation-heavy step are implemented for cluster computing (using files `rscript_*.R` and `submit_*.sh`).
- `rsip.Rmd`: Implements all steps for comparison of global rooting depth estimates against observations, and additional analyses of observations (trait gradient analysis, etc.)
- `rsip.Rmd`: Implements all steps for comparison of global rooting depth estimates against observations, and additional analyses of observations.
- `eval_et.Rmd`: Implements the evaluation of different remote sensing-based ET products against observations from FLUXNET.
- `rsofun_rsip_mct.Rmd`: Additional rsofun (SPLASH) simulations at RSIP site locations and visualisations, to test method for diagnosing S0.
- `rsip_tga.Rmd`: Trait gradient analysis on rooting depth data
- `create_suppl_info.Rmd`: Additional visualisations of method for diagnosing S0.

## Key analysis steps:
Expand Down
14 changes: 8 additions & 6 deletions rsip_tga.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ Use `gsheet::gsheet2tbl`

Read the data.
```{r}
df <- read_csv("~/data/rootingdepth/rsip/RSIP_Analysis_sheet_210409.csv") %>% # previously done with "data/RSIP_Analysis_sheet.csv"
# df <- read_csv("~/data/rootingdepth/rsip/RSIP_Analysis_sheet_210721.csv") %>%
# df <- read_csv("~/data/rootingdepth/rsip/RSIP_Analysis_sheet_210409.csv") %>% # previously done with "data/RSIP_Analysis_sheet.csv"
df <- read_csv("~/data/rootingdepth/rsip/RSIP_Analysis_sheet_210721.csv") %>%
rename(lon = Long, lat = Lat) %>%
rowid_to_column(var = "id") %>%
Expand Down Expand Up @@ -224,6 +224,8 @@ saveRDS(df6, file = "data/df_tga.rds")

Plot.
```{r eval=FALSE}
df6 <- readRDS("data/df_tga.rds")
df6 %>%
ggplot(aes(x = Dr_res_sitemean, y = Dr_res)) + # , color = Species
geom_point() +
Expand All @@ -239,8 +241,8 @@ gg1 <- df6 %>%
geom_abline(intercept=0, slope=1, linetype="dotted") +
theme_classic() +
geom_point(alpha = 0.3) +
labs(x = expression("Site mean" ~ italic("z")[r] ~ "(m)"),
y = expression(italic("z")[r] ~ "(m)")) +
labs(x = expression("Site mean ln" ~ italic("z")[r] ~ "(unitless)"),
y = expression("ln" ~ italic("z")[r] ~ "(unitless)")) +
theme(legend.title = element_blank())
gg1
Expand Down Expand Up @@ -363,8 +365,8 @@ df_tga_res %>%
## Publication figures

```{r}
bottom_row <- plot_grid(gg2, gg3, ncol = 4, labels = c('b', 'c'), rel_widths = c(0.3, 0.7))
plot_grid(gg1, bottom_row, ncol = 1, labels = c('a', ''))
# bottom_row <- plot_grid(gg2, gg3, ncol = 4, labels = c('b', 'c'), rel_widths = c(0.3, 0.7))
# plot_grid(gg1, bottom_row, ncol = 1, labels = c('a', ''))
top_row <- plot_grid(gg1, gg2, ncol = 2, labels = c('a', 'b'), rel_widths = c(0.7, 0.3))
plot_grid(top_row, gg3, nrow = 2, labels = c('', 'c'), rel_heights = c(1, 1.5) )
Expand Down

0 comments on commit 619481c

Please sign in to comment.