--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
Cheersdk.
To unsubscribe: email ggplot2+unsubscribe@googlegroups.com
More options: http://groups.google.com/group/ggplot2
Does that help?
HI David--
Thanks again for your reply.
I guess a bit of clarification on your point about the projections would be helpful. As far as I understand it, there are two issues here:
1. That coordinate system that the data is stored with internally.
2. How the data is displayed on the screen -- (mapping the (x,y) coordinates from the data onto (x,y) coordinates on the screen.)
GGplot presumably knows nothing about 1 (the type of coordinate system) and just stores (x,y) data.
What (I think) GGmap does is takes the latitude and longitude coordinates of the google map and maps it using a mercator projection (but just stores the latitude and longitude). However, I could also map those (lat,long) coordinates using any other projection -- including cartesian. This would impact the way it looks, but not much else.
Therefore, if I overlay data using geom_raster, where the underlying coordinates are in latitudes and longitudes the pictures should overlay correctly, and the only issue the the way in which the (correctly overlayed map) appears on the screen.
So therefore, based on this logic I think what I did is fine. But -- I'm probably missing something somewhere, and I look forward to hearing what it is :-).
Thanks!
Best,
Ted