Skip to content
Prev 260294 / 398502 Next

Converting the graphics window to a data matrix

On Thu, May 19, 2011 at 5:19 AM, Beutel, Terry S
<Terry.Beutel at deedi.qld.gov.au> wrote:
Instead of drawing to the screen, you can use the 'png' function to
create a graphics device that "draws" to an image file. Then you can
read that image file into R and get it as a matrix.

 You probably also want to set some of the margin and axis parameters
so the plotting region fills the whole device, and you dont have the
axes and tick marks etc confusing the matrix.

 That's some pointers for starters. I've not had breakfast yet...

Barry