Skip to content

Commit 54e88b8

Browse files
committed
Double values inside rel() for theme_linedraw
1 parent c595bce commit 54e88b8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

R/theme-defaults.r

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,15 +204,15 @@ theme_linedraw <- function(base_size = 11, base_family = "") {
204204
theme_bw(base_size = base_size, base_family = base_family) %+replace%
205205
theme(
206206
# black text and ticks on the axes
207-
axis.text = element_text(colour = "black", size = rel(0.8)),
208-
axis.ticks = element_line(colour = "black", size = rel(0.25)),
207+
axis.text = element_text(colour = "black", size = rel(1.6)),
208+
axis.ticks = element_line(colour = "black", size = rel(0.5)),
209209
# NB: match the *visual* thickness of axis ticks to the panel border
210210
# 0.5 clipped looks like 0.25
211211

212212
# pure black panel border and grid lines, but thinner
213-
panel.border = element_rect(fill = NA, colour = "black", size = rel(0.5)),
214-
panel.grid.major = element_line(colour = "black", size = rel(0.05)),
215-
panel.grid.minor = element_line(colour = "black", size = rel(0.025)),
213+
panel.border = element_rect(fill = NA, colour = "black", size = rel(1)),
214+
panel.grid.major = element_line(colour = "black", size = rel(0.1)),
215+
panel.grid.minor = element_line(colour = "black", size = rel(0.05)),
216216

217217
# strips with black background and white text
218218
strip.background = element_rect(fill = "black"),

0 commit comments

Comments
 (0)