サンプルデータがないと何を求めているのかを確認するのは少し難しいですが、次のように ggplot2 と geom_tile() プロットを使用したものかもしれません (きれいに仕上げられていないことをお詫びしますが、いじることができます)。
## LIBRARY (must be installed)
require(ggplot2)
require(plyr)
## CREATE THE GENEMAP DATA
geneMap<-data.frame(1:100,expand.grid(1:10,1:10),rnorm(100,6,2))
colnames(geneMap)<-c("ID","X","Y","expr")
## APPEND THE ROWMEANS TO EACH ITEM
rowMean<-ddply(geneMap, "X" ,function(df)mean(df$expr))
geneMap<-merge(geneMap,rowMean,by="X")
colnames(geneMap)<-c("X","ID","Y","expr","rMean")
## CREATE A BASIC TILE WITH FILLED ROWS (FILL BY MEAN, ALPHA BY VALUE)
hmap<-ggplot(data=geneMap, aes(x=X,y=Y)) + # Basic Plot
theme_bw() + # Basic Theme
geom_tile(aes(fill=rMean)) + # Fill the tile by mean
scale_x_continuous( breaks = 1:10,1) + # Force ticks 1-10 on x axis
scale_y_continuous( breaks = 1:10,1) + # Force ticks 1-10 ony axis
scale_fill_gradient(low="yellow", high="orange") # Color the heatmap
hmap <- hmap + annotate("text", x = geneMap$X, y = geneMap$Y,
label = round(geneMap$expr,2)) # Label each point with value
meanSummary<-unique(geneMap[,c("X","rMean")]) # Pull out the means for each row
origSummary<-geneMap[geneMap$Y==1,] # Pull out the original "seed" vals for each row
hmap<- hmap + annotate("text", x = meanSummary$X,
y = max(geneMap$Y)+1,
label = round(meanSummary$rMean,2)) # Add the mean labels at row end
hmap<- hmap + annotate("text", x = min(geneMap$Y)-1,
y = max(geneMap$Y)+1, label = "MEANS") # Label the row
hmap<- hmap + geom_line(aes(x=origSummary$X,
y=origSummary$expr*(max(origSummary$X)/max(origSummary$expr)),
size=3, alpha=0.6)) # Add the line plot
# Draw the map & flip is so the rows run horizontally (or not!)
hmap + coord_flip()