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() from rgl. the pnm example provided works fine x <- read.pnm(system.file("pictures/logo.ppm", package="pixmap")[1]) plot(x) #draws an R logo, nice :-) 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 I have tried changing the dpi when I export the image but still no cigar. I have dredged the help forum for related files and read the help files. My Os is windows XP and i'm running 2.8.1. I feel I'm missing something obvious! Thanks Dr. Simon Pickett Research Ecologist Land Use Department Terrestrial Unit British Trust for Ornithology The Nunnery Thetford Norfolk IP242PU 01842750050 [[alternative HTML version deleted]] ______________________________________________ R-help@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.