Re: [R] Problem with coordinates when trying to draw lines into a raster (image) file

2013-10-28 Thread Adams, Jean
Rick, I see a couple errors in my code ... you will need to attach the MASS package for the eqscplot() function and that function's first arguments should be any coordinates, I use (1, 1) library(jpeg) library(MASS) # download image from internet for use in example # http://www.tootsie.com/wallpa

Re: [R] Problem with coordinates when trying to draw lines into a raster (image) file

2013-10-24 Thread Adams, Jean
Rick, This uses a different approach than what you propose, but it gets the job done and perhaps you will find it helpful. Jean library(jpeg) # download image from internet for use in example # http://www.tootsie.com/wallpaper/wp_concord2_1344x1008.jpg img <- readJPEG("c:/temp/wp_concord2_1344x1

[R] Problem with coordinates when trying to draw lines into a raster (image) file

2013-10-21 Thread Rick Turner
Hi All, I am struggling with something, and could use some help I have a scenario where I need to draw lines onto a base image using R – briefly, the image has what amounts to an outline ‘map’ of locations, and the lines will correspond to ‘routes’ between two locations.