Re: [R] modify rectangle color from image

From: Saurav Pathak <>
Date: Wed 24 Jan 2007 - 22:06:43 GMT


Saurav Pathak [Wed, Jan 24, 2007 at 04:37:20PM -0500]:

+ Hi,
+ I need some suggestion on how I could modify the color on some
+ rectangle that I have created using "image".
+ In other words, I have a 5x5 matrix, say, m.
+ m <- matrix(rnorm(25), nrow=5)
+ I create a grid of rectangles by:
+ image(m)
+ Now I want to change the color of rectangle (3,3) to blue.

using rect for this.



______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Thu Jan 25 16:05:18 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 25 Jan 2007 - 05:30:29 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.