[R] Pixmap problem
Benjamin Lloyd-Hughes
blh at mssl.ucl.ac.uk
Wed Aug 25 12:31:20 CEST 2004
Hi,
I'm having trouble writing .pnm images which I think is due to a problem
with my colour space. The pixmap object seems to be looking for 72 of 8
colours (one per cell?) which doesn't seem healthy...
> library(pixmap)
> x <- pixmapIndexed(rep(1:8, 9), nrow=6, col=rainbow(8))
> x
Pixmap image
Type : pixmapIndexed
Size : 6x12
Resolution : 1x1
Bounding box : 0 0 12 6
Nr. of colors : 72 of 8
> write.pnm(x, file="D:/Temp/output.pnm")
Error in options(x) : evaluation nested too deeply: infinite recursion /
options(expression=)?
>
Grey ones work but with a warning...
> x <- pixmapGrey(rep(1:8, 9), nrow=6)
> x
Pixmap image
Type : pixmapGrey
Size : 6x12
Resolution : 1x1
Bounding box : 0 0 12 6
> write.pnm(x, file="D:/Temp/output.pnm")
Warning message:
connection is already open
>
Any ideas?
Cheers, Ben
[R 1.9.1 and Pixmap 0.4-1 under windows]
More information about the R-help
mailing list