How to specify columns in facet_grid OR how to change labels in facet_wrap

前端 未结 4 638
难免孤独
难免孤独 2020-12-02 15:22

I have a large number of data series that I want to plot using small multiples. A combination of ggplot2 and facet_wrap does what I want, typically resulting a

4条回答
  •  时光取名叫无心
    2020-12-02 16:07

    Just add labeller = label_wrap_gen(width = 25, multi_line = TRUE) to the facet_wrap() arguments.

    Eg.: ... + facet_wrap( ~ variable, ,labeller = label_wrap_gen(width = 25, multi_line = TRUE))

    More info: ?ggplot2::label_wrap_gen

提交回复
热议问题