Relative Content

Tag Archive for rgeospatial

Longitude and latitude data from “searching engine” is not drawing a map using R maps/mapdata/ggplot packages

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 ?