Closed danielcoral closed 3 months ago
Hi there, thanks for the report! I seem unable to reproduce the bug. Are you at the latest CRAN release of ggh4x? EDIT: it was me who was not on the latest CRAN release version of ggh4x 😅 Yes can confirm now.
Should work with current github version:
devtools::load_all("~/packages/ggh4x")
#> ℹ Loading ggh4x
#> Loading required package: ggplot2
library(dplyr, warn.conflicts = FALSE)
library(tidyr)
dt <- iris %>%
pivot_longer(-Species)
dt %>%
mutate(name = gsub("\\.", "<br>", name)) %>%
ggplot(aes(value)) +
geom_density() +
ggh4x::facet_grid2(name ~ Species, scales = 'free') +
theme(strip.text.y = ggtext::element_markdown(angle = 0))
Created on 2024-03-25 with reprex v2.1.0
Thanks a lot @teunbrand !
Hi!
I have previously been able to format the text of facet strips generated with
ggh4x
(version 0.2.8), using the markdown functionality ofggtext
version 0.1.2, andggplot2
version 3.4.4. After upgrading toggplot2
version 3.5.0, this now fails :Created on 2024-03-13 with reprex v2.1.0