Steven Winter
2012-Jun-26 01:47 UTC
[R] Drawing (lon,lat) coordinates onto the image of a world
Given a set of latitude and longitude coordinates pairs (stored in variables "latitudevals" and "longitudevals"), I would like to plot them onto the image of a equirectangular world map. I would like to plot each coordinate pair with a red circle, if possible. Does anyone have any suggestions as to how I go about doing this, whether using R or using another program like Google maps? Thank you, Steve [[alternative HTML version deleted]]
Pascal Oettli
2012-Jun-26 07:21 UTC
[R] Drawing (lon,lat) coordinates onto the image of a world
Hello, What do you mean by "image"? A file (jpeg, bmp,...)? Best Regards Le 26/06/2012 10:47, Steven Winter a ?crit :> Given a set of latitude and longitude coordinates pairs (stored in variables "latitudevals" and "longitudevals"), I would like to plot them onto the image of a equirectangular world map. I would like to plot each coordinate pair with a red circle, if possible. Does anyone have any suggestions as to how I go about doing this, whether using R or using another program like Google maps? > > Thank you, > Steve > [[alternative HTML version deleted]] > > > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
Sarah Goslee
2012-Jun-26 12:32 UTC
[R] Drawing (lon,lat) coordinates onto the image of a world
Hi Steve, On Mon, Jun 25, 2012 at 9:47 PM, Steven Winter <stevenwinter88 at yahoo.com> wrote:> Given a set of latitude and longitude coordinates pairs?(stored in variables "latitudevals" and "longitudevals"), I would like to plot them onto the image of a equirectangular world map. I would like to plot each coordinate pair with a red circle, if possible. Does anyone have any suggestions as to how I go about doing this, whether using R or using another program like Google maps?This might help: library(maps) map("world") lon <- c(-75, -70, 10) lat <- c(42, -45, 50) points(lon, lat, col="red", pch=19) Sarah> Thank you, > Steve > ? ? ? ?[[alternative HTML version deleted]] >-- Sarah Goslee http://www.functionaldiversity.org