From c62c4858e2a69876f7cac9c21c8b5cccf34d8077 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 13 Nov 2025 13:01:14 +0000 Subject: [PATCH] Use strip.cex parameter for strip text size in ggdesplot Previously, the strip text size was hardcoded to 5, ignoring the user-provided strip.cex parameter. Now the strip text size properly respects the strip.cex parameter by multiplying it by the base font size (11 points), consistent with ggplot2 conventions. This improvement ensures users can control the facet strip text size as documented. --- R/ggdesplot.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/ggdesplot.R b/R/ggdesplot.R index 43187ff..2707d87 100644 --- a/R/ggdesplot.R +++ b/R/ggdesplot.R @@ -537,7 +537,7 @@ ggdesplot <- function(data, panel.border = element_rect(fill = NA, colour = "black"), # top/right panel.background = element_blank(), panel.spacing = unit(0, "lines"), # space between panels - strip.text = element_text(size=5) + strip.text = element_text(size = 11 * strip.cex) ) out