Wrap-up:
Different solutions were proposed for turning a matrix
into a bitmap.
Henrik Bengtsson [EMAIL PROTECTED]
R.classes bundle from
(http://www.maths.lth.se/help/R/R.classes/)
MonochromeImage
R.classes is still not compatible with
2.0.0 (minor modification to DESCRIPTION etc
are needed) so
Hi:
Goal: use R to turn a matrix of 1's and 0's
into a corresponding image (e.g. png)
of black and white pixels.
Why R: Yes, I can do this more efficiently and precisely
with a perl module like Image::PBM. Been there,
done that many times, etc. (Just humor
On Thu, 14 Oct 2004, Scott Harrison wrote:
Hi:
Goal: use R to turn a matrix of 1's and 0's
into a corresponding image (e.g. png)
of black and white pixels.
Maybe use the write.pnm() function in the pixmap package:
try1 - matrix(0, nrow=100, ncol=100)
Scott == Scott Harrison [EMAIL PROTECTED]
on Thu, 14 Oct 2004 11:13:16 -0400 writes:
Scott Hi: Goal: use R to turn a matrix of 1's and 0's into
Scott a corresponding image (e.g. png) of black and white
Scott pixels.
Scott Why R: Yes, I can do this more efficiently and
PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martin Maechler
Sent: Thursday, October 14, 2004 6:09 PM
To: Scott Harrison
Cc: [EMAIL PROTECTED]
Subject: Re: [R] fidelity of generated raster images (R and perl)
Scott == Scott Harrison [EMAIL PROTECTED]
on Thu, 14 Oct 2004 11:13:16