[R] reading an image and adding a legend
Dieter Menne
dieter.menne at menne-biomed.de
Thu Apr 9 14:54:29 CEST 2009
Simon Pickett <simon.pickett <at> 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 format. Some year ago,
the wisdom was to convert your images using imagemagick
http://finzi.psych.upenn.edu/R/Rhelp02/archive/23131.html
But read.jpeg should work (another variant in rimage), if that's good enough
for your graphics
Dieter
More information about the R-help
mailing list