Relative Content

Tag Archive for rggplot2word-wrapfacet-wrap

Wrap ggplot2 strip text in a way that avoids short final lines?

I am making a plot where variable descriptions appear in the left “strip” text of facet_wrap() facets. Sometimes when variable descriptions are long enough to be wrapped, the last line comes out very short. This can make the plot look weird, especially if the text is right-justified.