[BioC] Row labels in a heatmap
James W. MacDonald
jmacdon at uw.edu
Mon Jul 16 15:46:50 CEST 2012
OK, so just set it to be so.
nam <- rep("", nrow(yourmatrix))
nam[seq(1,nrow(yourmatrix), 100)] <- seq(1, nrow(yourmatrix), 100)
row.names(yourmatrix) <- nam
Best,
Jim
On 7/16/2012 9:42 AM, Liat Shavit Grievink wrote:
> Hi James,
> Thank you!
> The thing is that I rather not have numbers 1 to 500, but for example:
> 1, 100, 200, 300,400, 500. or something like this (so show a label
> only every 100 genes).
> Thanks again,
> Liat.
> On 16.07.2012, at 16:24, James W. MacDonald wrote:
>
>> row.names(yourmatrix) <- seq(1, nrow(yourmatrix),1)
>
--
James W. MacDonald, M.S.
Biostatistician
University of Washington
Environmental and Occupational Health Sciences
4225 Roosevelt Way NE, # 100
Seattle WA 98105-6099
More information about the Bioconductor
mailing list