From 5494cb38938f8b5d2781935f1140496867c5610c Mon Sep 17 00:00:00 2001 From: Teun van den Brand Date: Tue, 23 Jul 2024 14:21:10 +0200 Subject: [PATCH] fix missing `labels` slot --- R/plot.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/plot.R b/R/plot.R index 6bdcabc23f..97a1e96102 100644 --- a/R/plot.R +++ b/R/plot.R @@ -130,7 +130,8 @@ ggplot.default <- function(data = NULL, mapping = aes(), ..., coordinates = coord_cartesian(default = TRUE), facet = facet_null(), plot_env = environment, - layout = ggproto(NULL, Layout) + layout = ggproto(NULL, Layout), + labels = list() ), class = c("gg", "ggplot")) set_last_plot(p)