diff --git a/R/guides-.R b/R/guides-.R index 44ed7fb383..83ced80cd7 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()