Re: [R] Heatmap: draw horizontal line

2009-05-06 Thread Paul Evans
Thanks Matthias! Exactly what I was looking for. Paul From: Matthias Kohl Cc: r-h...@stat.math.ethz.ch Sent: Wednesday, May 6, 2009 2:06:22 PM Subject: Re: [R] Heatmap: draw horizontal line Is heatmap.2(mat,Rowv=NA,trace = 'none',key=F, add.expr

Re: [R] Heatmap: draw horizontal line

2009-05-06 Thread Matthias Kohl
Is heatmap.2(mat,Rowv=NA,trace = 'none',key=F, add.expr = abline(h = c(3.5,5.5), lwd = 3)) what your are looking for? hth, Matthias Paul Evans schrieb: Hi, I wanted to draw a heatmap with some horizontal lines. For example: #-- code -- mat <- matrix(-1:1,7,9) heatmap.2(mat,Rowv=NA

[R] Heatmap: draw horizontal line

2009-05-06 Thread Paul Evans
Hi, I wanted to draw a heatmap with some horizontal lines. For example: #-- code -- mat <- matrix(-1:1,7,9) heatmap.2(mat,Rowv=NA,trace = 'none',key=F) #end code - In this heatmap, I want to subgroup the rows. For instance, I would like to group rows 5,6 & 7 together, and would