diff --git a/R/plot-build.R b/R/plot-build.R index b55c599198..f855dddd78 100644 --- a/R/plot-build.R +++ b/R/plot-build.R @@ -286,7 +286,7 @@ ggplot_gtable.ggplot_built <- function(data) { plot_table <- table_add_tag(plot_table, plot$labels$tag, theme) # Margins - plot_margin <- calc_element("plot.margin", theme) + plot_margin <- calc_element("plot.margin", theme) %||% margin() plot_table <- gtable_add_padding(plot_table, plot_margin) if (is.theme_element(theme$plot.background)) {