From c770aec0db686778134161b36bdffe89c578e3c8 Mon Sep 17 00:00:00 2001 From: Teun van den Brand Date: Thu, 23 Jan 2025 13:31:13 +0100 Subject: [PATCH] prepopulate theme --- R/guides-.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/guides-.R b/R/guides-.R index 0e7ca26882..3e51833bdb 100644 --- a/R/guides-.R +++ b/R/guides-.R @@ -274,7 +274,7 @@ Guides <- ggproto( # # The resulting guide is then drawn in ggplot_gtable - build = function(self, scales, layers, labels, layer_data, theme) { + build = function(self, scales, layers, labels, layer_data, theme = theme()) { # Empty guides list custom <- self$get_custom()