I am trying to draw a map for all province within Egypt using maps and ggplot2 package in R, but I did not find any sub-region (provinces) for Egypt available in the databases of these packages.
So, I downloaded coordinates (longitude and latitude) for all provinces in Egypt from google (and other website), and tried to generate the map, but it gave me a totally crumbled picture which is definitely not Egypt’ provinces. This made me think that the coordinates from a searching engine (e.g. google) is not like the one used by R. I do understand that R is dealing with coordinates in +ve and negative values, whereas public databases is not. Do I need to convert it somehow to a “R” format ?
Could any of you suggest a way around this, especially I did not find Egypt’s province long/lat in the databases of R packages ?
Thanks
I have tried this code successfully for Egypt as a whole country
ggplot() +
geom_polygon(data = mapdata_Egypt, aes(x=long, y = lat, group = group), fill = NA, color = "red") +
coord_fixed(1.3)
But I could not find Egypt’s province coordinates to draw them.