Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
# 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