Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfmakahiya/47c6cc0eb71a145f168842dfa12e07ef to your computer and use it in GitHub Desktop.
Save mfmakahiya/47c6cc0eb71a145f168842dfa12e07ef to your computer and use it in GitHub Desktop.
# Using shapefile / geom_polygon
SHAPE_FILE_PATH = "./Data/World_Countries/World_Countries.shp"
world <- readOGR(dsn = SHAPE_FILE_PATH)
world <- fortify(world)
mapplot3 <- ggplot(data = world, aes(long, lat, group=group)) +
geom_polygon(color = "white", fill = "gray50")
mapplot3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment