library(tidyverse)
library(ggtext)
mtcars %>%
mutate(cyl = str_c("**", cyl, " long text on the top**<br>(shorttext)")) %>%
ggplot(aes(hp, wt)) +
geom_line() +
facet_wrap(~cyl) +
theme(strip.text.x = element_markdown(hjust = 0))
由reprex包 (v0.3.0)于2021-01-03创建
str_c("atop(bold(", cyl, "),(X))")
? - Axeman