Skip to content

Coordinates labels and gridlines are wrong in coord_map() #2116

@adrfantini

Description

@adrfantini

I remember finding a bug report for this one, but I can't find it anymore.

The axis labels and the grid lines are all over the place if using coord_map(). An example is ggplot's very own documentation page, last plot.

Other example can e.g. be found in this stack overflow question, for example this plot has weird axis labels and the grid lines are too short, misaligned or missing.

Maybe how st_graticule() from package sf calculates the border points might be of help. See this plot, taken directly from the manual page of st_graticule(), for an example.

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