-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFig3.R
33 lines (27 loc) · 874 Bytes
/
Fig3.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
library(ggplot2)
library(ggalluvial)
library(patchwork)
if (file.exists("/.dockerenv")) { # Check if running in Docker
# Assume igmm/cvallejo-predicct/libdr/ is passed to the data volume
prefix <- "data/"
} else {
# Assume running outside of a Docker container and the IGC(/IGMM) datastore is
# mounted at /Volumes
prefix <- "/Volumes/igmm/cvallejo-predicct/libdr/"
}
p1 <- readRDS(paste0(prefix, "processed/plots/fc-alluvial.RDS"))
p2 <- readRDS(paste0(prefix, "processed/plots/crp-alluvial.RDS"))
p <- p1 / p2 +
plot_annotation(tag_levels = "A") &
theme(plot.tag = element_text(size = 18, face = "bold"),
axis.title = element_text(size = 13))
ggsave("paper/Figure-S7.pdf",
p,
width = 12,
height = 12,
units = "in")
ggsave("paper/Figure-S7.png",
p,
width = 12,
height = 12,
units = "in")