Skip to content

Commit a0ce9b8

Browse files
committed
add panel.widths/panel.heights theme elements
1 parent 57ba97f commit a0ce9b8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

R/theme-elements.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,8 @@ el_def <- function(class = NULL, inherit = NULL, description = NULL) {
634634
panel.grid.minor.x = el_def("element_line", "panel.grid.minor"),
635635
panel.grid.minor.y = el_def("element_line", "panel.grid.minor"),
636636
panel.ontop = el_def("logical"),
637+
panel.widths = el_def("unit"),
638+
panel.heights = el_def("unit"),
637639

638640
strip.background = el_def("element_rect", "rect"),
639641
strip.background.x = el_def("element_rect", "strip.background"),

R/theme.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,8 @@ theme <- function(...,
427427
panel.grid.minor.x,
428428
panel.grid.minor.y,
429429
panel.ontop,
430+
panel.widths,
431+
panel.heights,
430432
plot.background,
431433
plot.title,
432434
plot.title.position,

0 commit comments

Comments
 (0)