Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Scale on map varies by more than 10%, scale bar may be inaccurate" with rnaturalearth world map #109

Open
S-AQ opened this issue Dec 8, 2022 · 3 comments

Comments

@S-AQ
Copy link

S-AQ commented Dec 8, 2022

Hi Dewey,

When I tried to add a scalebar to a world map of data from rnaturalearth, I got the following warning:
Scale on map varies by more than 10%, scale bar may be inaccurate.

library(ggspatial)
library(rnaturalearthdata)
world_countries <- ne_countries(returnclass = 'sf')

ggplot()+
  layer_spatial(world_countries)+
  annotation_scale(location = "tl")

Somehow the annotation_scale is not aware of the specifics of the world_countries object.
A similar problem occurred here, but that was never solved by anyone.
How can I get the right scale bar with this data?

image

@DavidBoring
Copy link

oh,I met the same question. Dear friend,Did you solve the problem?

@paleolimbot
Copy link
Owner

It's telling you that the scale bar does not necessarily apply in the same way to all areas of the map, which is true! You should probably not be putting a scale bar on a map with a scale that large (or you can accept that it is not accurate to do so and ignore the error message).

@DavidBoring
Copy link

DavidBoring commented Mar 31, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants