Hi,

This question is about the package gplots and the function heatmap.2. I'm
not a programmer and I did not understand the answers I found when I googled
it. Thank you in advance.

A similar question was asked with title "heatmap color distribution" in 2005
and got the answer to use breaks. When I try to use the example code, I get
the error "Error in image.default(1:nc, 1:nr, x, xlim = 0.5 + c(0, nc), ylim
= 0.5 +  : must have one more break than colour".

Basically, I have several sets of gene expression data and want to be able
to compare these between patients.

An example:

When I use heatmap.2 with one gene set (with the colors red-black-green),
green is 3 and red is 9 and in between the colors fade to black.

When I then use another gene set, green is 5 and red is 11.

I need to be able do define the limits to compare between heatmaps.

Thank you again,

Fredrik

	[[alternative HTML version deleted]]

