Skip to content

Swap positions of bottom facet strip labels and x axis labels?Β #6552

@BajczA475

Description

@BajczA475

When you move the strips formed by faceting to the bottom, as in, e.g.:

ggplot(iris, aes(x = Sepal.Length, y = Petal.Length)) +
facet_wrap(~Species, strip.position = "bottom") 

You end up with facet strips that sit in between the axis line and the x-axis labels. I could be entirely alone in this, but I find this ordering perplexing. Is there a particular reason the strips couldn't go to the outside of (beneath) the axis labels? It feels like having those as close to the axis line as possible would always be desirable, and having facet strips instead "interrupt" the connection between them feels off to me.

Presumably, the two rows (and just the relevant columns) in the gtable could get safely swapped if strip.position = "bottom" && x-axis label grobs exist in whatever row that is (11 I think?).

But, again, maybe I'm the only one who thinks the current ordering is strange! πŸ˜…

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions