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

long-lat wrong for rural and (still) zip #29

Open
RaSieb opened this issue Sep 3, 2018 · 4 comments
Open

long-lat wrong for rural and (still) zip #29

RaSieb opened this issue Sep 3, 2018 · 4 comments

Comments

@RaSieb
Copy link

RaSieb commented Sep 3, 2018

See #13: The map is far longer south-west than with the other detail-options.

@RaSieb
Copy link
Author

RaSieb commented Sep 3, 2018

Here's a reproducible example:

dk_reg <- mapDK::region
dk_reg2 <- mapDK::rural
ggplot(mapping = aes(long, lat)) +
  geom_map(data = dk_reg, map=dk_reg, aes(map_id=id), fill="green") +
  geom_map(data = dk_reg2, map=dk_reg2, aes(map_id=id), fill="blue")

Which produces this plot:
screen shot 2018-09-03 at 13 11 05

@RaSieb RaSieb changed the title long-lat wrong for Rural and zip long-lat wrong for rural and (still) zip Sep 3, 2018
@hoegsbro
Copy link

hoegsbro commented Apr 17, 2021

Hi RaSieb.
Did you find a solution to this problem? I know it is a while since you posted, but I have the same problem now... I have made an approximate transformation based on the data in the municipality-object which is good enough (except for Bornholm :-)) for plotting approximate town-names e.g., but not good enough for more detailed work, so I would appreciate if you had solved this issue.
approximate_trans.pdf

@RaSieb
Copy link
Author

RaSieb commented Apr 19, 2021

Hi @hoegsbro , I don't think the issue is fixed. I ended up downloading the data from eurostat:

library(sf)
library(eurostat)
geodata <- get_eurostat_geospatial(output_class = "sf", resolution = "1", nuts_level = 3)
geodataDK <- geodata[geodata$CNTR_CODE=="DK",]
ggplot() + geom_sf(data=geodataDK)

@hoegsbro
Copy link

Thanks a lot - I wasn't aware of the eurostat package. But as far as I can see there are no details for the zip-codes in these data, so it is still not possible to overlay the map with zip codes with the full DK-map?

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

2 participants