Skip to content

Feature Request: nudge_x and nudge_y as a true aesthetic #5445

@lhami

Description

@lhami

Sometimes I want more granular control over the position of specific text labels for geom_text and geom_text_repel, and I may want that to depend on some other aspect of the data (overlapping points, points that are above a certain threshold, specific problematic points that I know by name from previous versions, etc) using mutate().

Since nudge_x and nudge_y can take vectors that are the same length as the data, it seems already acknowledged that people may want to sometimes have a different nudge value for each point, which could easily be a column of nudge values in the data frame or a function thereof, so I'm not sure why it works differently from other aesthetics which can be specified in aes() with a column name quosure or outside of aes() for all points.

Could we make nudge_x and nudge_y work like the x and y aesthetics themselves?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions