Skip to content

facet_nested doesnt seem to respect strip.clip = 'off'? #212

@bbimber

Description

@bbimber

Hello,

facet_nested() is a really useful feature! One somewhat new addition to ggplot is the theme option "strip.clip = 'off'", which turns off the clipping mask on facets. This is useful if your facet text is a little too wide for the rectangle on one or more facets. facet_nested() does not seem to respect this, at least for the bottom-level label. Should it?

Below is a simplified ggplot to illustrate the kind of plot. I could try to make a reproducible example using test data if that's helpful.

ggplot(dat), aes(y = IsProliferating, x = Timepoint, fill = SideType)) +
    geom_boxplot(outlier.shape = NA) +
    ggh4x::facet_nested(RIRA_TNK_v2.cellclass ~ SideType + VaccineGroup, scales = 'free', space = 'free_x') +
    theme(
      strip.clip = 'off'
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions