Skip to content

relative placement of annotations #1244

Closed
@gdkrmr

Description

@gdkrmr

Feature request:
It would be really useful if annotations could be placed like legends indicating their relative position (legend.placement = c(1,0)) in the plot area.

Coordinate limits can be extracted after building the plot:
https://gist.github.com/tomhopper/9076152

Being able to do this before building the plot would be a really neat feature, e.g. for placing regression formulae nicely in a corner.
Something like:

g + annotate("text", x = get_xlim()[2], y = get_ylim()[2], label = "y = 3 + 4x")

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