From e6d6fbb4228ad2d14920019ab862c4407bb3716e Mon Sep 17 00:00:00 2001 From: Carl Suster Date: Wed, 15 May 2024 16:52:55 +1000 Subject: [PATCH] Fix tile labels when not week binning --- R/plot_calendar.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/plot_calendar.R b/R/plot_calendar.R index acc1778..e7736be 100644 --- a/R/plot_calendar.R +++ b/R/plot_calendar.R @@ -49,7 +49,7 @@ plot_calendar <- function( ) } else { if (!is.null(labels)) { - mapping2 <- aes(label = format(x, labels)) + mapping2 <- aes(label = format(ggplot2::after_stat(x), labels)) mapping$label <- mapping2$label }