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()