Skip to content

Horizontal y axis title above plot, left-justified #6495

@BajczA475

Description

@BajczA475

A lot of design guides argue that text should, as often as possible, be printed horizontally to align with how most humans naturally read. However, the default y-axis title in ggplot2 (and pretty much every software ever!) is vertical. This makes sense, but I do actually much prefer the aesthetic of the y-axis title being horizontal and left-justified above the plot, as summarized in my SO post here: https://stackoverflow.com/questions/79654995/in-ggplot2-in-r-how-should-i-position-a-y-axis-title-in-the-top-plot-margin-le

As I noted there, there are several "hack-y" ways to do this, but none that "just work" programmatically out of the box.

What I'd love to see is something akin to the legend.position theme element but for the y axis title. If I could just do y.axis.title.position = "top", where hjust could then be used to slide it to one edge or the other, that'd be awesome! I don't presume to know any of the technical difficulties of implementing that though....

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