Skip to content

Commit 36736bf

Browse files
committed
add plot.title.position to all themes, add visual test.
1 parent ad2c9d0 commit 36736bf

File tree

3 files changed

+218
-0
lines changed

3 files changed

+218
-0
lines changed

R/theme-defaults.r

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ theme_void <- function(base_size = 11, base_family = "",
488488
hjust = 0, vjust = 1,
489489
margin = margin(t = half_line)
490490
),
491+
plot.title.position = "panel",
491492
plot.subtitle = element_text(
492493
hjust = 0, vjust = 1,
493494
margin = margin(t = half_line)
@@ -616,6 +617,7 @@ theme_test <- function(base_size = 11, base_family = "",
616617
hjust = 0, vjust = 1,
617618
margin = margin(b = half_line)
618619
),
620+
plot.title.position = "panel",
619621
plot.subtitle = element_text(
620622
hjust = 0, vjust = 1,
621623
margin = margin(b = half_line)

0 commit comments

Comments
 (0)