Hi,
Is there a way to make the filled.contour() function produce a plot similar to
the image() function? i.e. not have smooth contours but rather distinct
"squares" corresponding to the different cells of the matrix. The
reason I ask is because since image doesn't have an option to display colour
bars it is a lot less useful.
Cheers
Muri Soares
Department of Maths and Applied Maths
University of Cape Town
South Africa
[[alternative HTML version deleted]]
Muri Soares wrote:> Hi, > > Is there a way to make the filled.contour() function produce a plot similar to the image() function? i.e. not have smooth contours but rather distinct "squares" corresponding to the different cells of the matrix. The reason I ask is because since image doesn't have an option to display colour bars it is a lot less useful. > >Hi Muri, Have a look at color2D.matplot in the plotrix package. Jim
The image function in package Matrix plots a color legend by default. Searching on what seemed like the obvious strategy "image legend" in R Site Search would have identified this and a huge number of other alternatives, of which Lemon's color2D.matplot is the tenth. -- David Winsemius On Jun 10, 2009, at 5:28 AM, Muri Soares wrote:> Hi, > > Is there a way to make the filled.contour() function produce a plot > similar to the image() function? i.e. not have smooth contours but > rather distinct "squares" corresponding to the different cells of > the matrix. The reason I ask is because since image doesn't have an > option to display colour bars it is a lot less useful. > > Cheers > > Muri Soares > Department of Maths and Applied Maths > University of Cape Town > South Africa > > > [[alternative HTML version deleted]]David Winsemius, MD Heritage Laboratories West Hartford, CT