Skip to content

Instantly share code, notes, and snippets.

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