-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmake.R
More file actions
executable file
·23 lines (17 loc) · 1 KB
/
make.R
File metadata and controls
executable file
·23 lines (17 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
library("targets")
source("other code/libraries.R")
# make the targets that are out of date
# looks for a file called "_targets.R" in the working directory
tar_make()
tar_load_everything()
# view pipeline and show which targets are out of date
tar_visnetwork()
fs::file_show("manuscript/manuscript.pdf")#display pdf
ggsave("output/Figure2_WN_traits.png", trait_WN_figure, dpi = 300, height = 4, width = 6)
ggsave("output/Figure3_WG_traits.png", trait_WG_figure, dpi = 300, height = 6, width = 6)
ggsave("output/Figure4_pca.png", trait_pca_figure, dpi = 300, height = 6, width = 6)
ggsave("output/Figure5_itv.png", itv_figure, dpi = 300, height = 6, width = 6)
ggsave("output/FigureS2_pca.png", full_trait_pca_figure, dpi = 300, height = 6, width = 6)
ggsave("output/FigureSI_Y_itv.png", itv_origin_output, dpi = 300, height = 6, width = 6)
ggsave("output/Figure_S6_climate.png", climate_figure, dpi = 300, height = 6, width = 8)
ggsave("output/Figure_S7_gain_loss.png", gain_loss_figure, dpi = 300, height = 5, width = 10)