Skip to content

strip_text sizing in facet_wrap is off #44

@jbloom

Description

@jbloom

The sizing of the strips with the labels above the plots in facet_wrap is inconsistent. If I facet_wrap a plot with just two rows, I get what seem to me to be overly narrow strips such that the label text is at the edges of the strip.

I can increase the strip height with + theme(strip_text=element_text(lineheight=1.8)). But then the strips become far too tall when there are more rows in the faceted plot.

I have played around with this some, and I think the ultimate problem is that the way that the height of the strip text is computed must depend on the total height of the faceted plots, such that plots with more rows end up with taller strip texts.

Let me know if you want me to post example images.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions