-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.r
More file actions
25 lines (22 loc) · 897 Bytes
/
theme.r
File metadata and controls
25 lines (22 loc) · 897 Bytes
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
library(ggplot2)
linewidth <- 0.25
tagsize <- 8
# lwd_scaling <- 72.27 / 96
figure_theme <- theme_bw() +
theme(
panel.border = element_rect(fill = NA, linewidth = linewidth, color = "black"),
axis.ticks = element_line(linewidth = linewidth, color = "black"),
axis.ticks.length = unit(2, "points"),
panel.grid = element_blank(),
text = element_text(size = 5),
plot.title = element_text(hjust = 0.5),
axis.title = element_text(size = 6),
axis.text = element_text(size = 5, color = "black"),
legend.text = element_text(size = 5),
legend.title = element_text(size = 6),
strip.text = element_text(size = 6),
strip.background = element_blank(),
legend.key.size = unit(0.3, "cm"),
plot.tag = element_text(size = tagsize, face = "bold"),
plot.background = element_blank()
)