【发布时间】:2019-10-20 07:32:21
【问题描述】:
如何在使用atop() 时将文本完全左对齐?
library(tidyverse)
mtcars %>%
mutate(cyl = str_c("atop(bold(", cyl, "~long~text~on~the~top),(shorttext))")) %>%
ggplot(aes(hp, wt)) +
geom_line() +
facet_wrap(~cyl, labeller = label_parsed) +
theme(strip.text.x = element_text(hjust = 0))
【问题讨论】:
-
str_c("atop(bold(", cyl, "),(X))")? -
这更接近了,但并不能完全解决问题,我将更新我的示例