Last active
February 22, 2018 13:48
-
-
Save aurielfournier/7b104c11348ecb50755ed728929f3c86 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| world_map <- rworldmap::getMap() | |
| world_map@data$id = rownames(world_map@data) | |
| world_map.points <- ggplot2::fortify(world_map, region="id") | |
| # Error: IllegalArgumentException: Points of LinearRing do not form a closed linestring |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nevermind.
I figured it out
https://gis.stackexchange.com/questions/215607/cannot-fortify-rworldmaps-default-world-map-with-a-region-argument
world_map.points <- ggplot2::fortify(world_map)works