Re: [R] reading an image and adding a legend

2009-04-09 Thread Dieter Menne
Simon Pickett bto.org> writes: > But my code returns an error > > x<-read.pnm("C:/Documents and Settings/simonp/My Documents/Simon BTO/RELU/GIS data/ten km areas in analysis.bmp") > Error in pm.readmagicnumber(con) : Not a PNM format file Error message seems quite clear: bmp a non-supported for

[R] reading an image and adding a legend

2009-04-09 Thread Simon Pickett
Hi all, I would like to 1. Read in an arcmap image into R (I can export pretty much any type of image jpeg, bitmap etc from arcmap) 2. Use R to create a nice colour legend in the plot First of all, Is this possible? So far I'm stuck on point 1. I have tried read.pnm() from pixmap and read.jpeg