From c7143fd402a61de6f1f808beeffa8797c5ea0f84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Fonseca?= Date: Sun, 16 Nov 2025 16:40:15 +0100 Subject: [PATCH] fixes bug with build_mosaic due to ggplot2::coord_fixed build_mosaic(mosaic1) Error in `parse_coord_expand()`: ! `expand` must be a logical vector, not the number 0.5. --- R/build-mosaic.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/build-mosaic.R b/R/build-mosaic.R index d6d9344..bb9cbdd 100644 --- a/R/build-mosaic.R +++ b/R/build-mosaic.R @@ -42,7 +42,7 @@ build_mosaic <- function(brick_obj, title=NULL){ geom_brick_rect(ggplot2::aes(fill = Lego_color), color = "#333333", use_bricks = use_bricks)+ ggplot2::scale_fill_identity() + - ggplot2::coord_fixed(expand = 0.5) + ggplot2::coord_fixed(expand = TRUE) img <- img + ggplot2::labs(title = title) +