[R] Drawing (lon,lat) coordinates onto the image of a world
Sarah Goslee
sarah.goslee at gmail.com
Tue Jun 26 14:32:43 CEST 2012
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
More information about the R-help
mailing list