-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.R
26 lines (23 loc) · 1.15 KB
/
style.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
theme_min <- function(base_size = 11, base_family = "",
border_colour = "black",
border_size = 1) {
theme_light(base_size = 11, base_family = "") +
theme(
panel.grid.major = element_blank(),
panel.grid.minor = element_blank(),
panel.background = element_blank(),
panel.border = element_rect(fill = NA, colour = border_colour, size = border_size),
axis.ticks = element_line(colour = border_colour),
strip.background = element_rect(fill = NA, colour = NA),
strip.text.x = element_text(colour = "black", size = rel(1.2)),
strip.text.y = element_text(colour = "black", size = rel(1.2)),
title = element_text(size = rel(0.9)),
axis.text = element_text(colour = "black", size = rel(1.2)),
axis.title = element_text(colour = "black", size = rel(1.5)),
legend.title = element_text(colour = "black", size = rel(1.2)),
legend.key.size = unit(0.9, "lines"),
legend.text = element_text(size = rel(0.7), colour = "black"),
legend.key = element_rect(colour = NA, fill = NA),
legend.background = element_rect(colour = NA, fill = NA)
)
}