示例说明:
library(tidyverse)
diamonds2 <- diamonds
long_names <- c("very long label blah blah", "another long label look at that",
"some text here big long label", "and so on and so forth", "the quick brown fox")
diamonds2$long <- long_names
ggplot(diamonds2, aes(x = depth, y = carat)) +
geom_line() +
facet_grid(cols = vars(long))
我想包装每个Chartlet的标题,以便可以阅读所有文本。
我该怎么做?