[BioC] RowInd (row index permutation vector )

James W. MacDonald jmacdon at med.umich.edu
Fri Sep 4 20:18:05 CEST 2009


a <- heatmap(as.matrix(mtcars))
 > rev(row.names(mtcars)[a$rowInd])
  [1] "Toyota Corona"       "Porsche 914-2"       "Datsun 710"
  [4] "Volvo 142E"          "Merc 230"            "Lotus Europa"
  [7] "Merc 280"            "Merc 280C"           "Mazda RX4 Wag"
[10] "Mazda RX4"           "Merc 240D"           "Ferrari Dino"
[13] "Fiat 128"            "Fiat X1-9"           "Toyota Corolla"
[16] "Honda Civic"         "Merc 450SL"          "Merc 450SE"
[19] "Merc 450SLC"         "Dodge Challenger"    "AMC Javelin"
[22] "Hornet 4 Drive"      "Valiant"             "Duster 360"
[25] "Camaro Z28"          "Ford Pantera L"      "Pontiac Firebird"
[28] "Hornet Sportabout"   "Cadillac Fleetwood"  "Lincoln Continental"
[31] "Chrysler Imperial"   "Maserati Bora"

Best,

Jim



Priscila Grynberg wrote:
> Dear BioCs,
> I'd like to know how can I obtain the list of genes in the same order as
> heatmap clustered them. I used heatmap() function. And I can't read the row
> names.
> 
> I read about RowInd and order.dendrogram(), but with no success at all.
> 
> Thanks.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor

-- 
James W. MacDonald, M.S.
Biostatistician
Douglas Lab
University of Michigan
Department of Human Genetics
5912 Buhl
1241 E. Catherine St.
Ann Arbor MI 48109-5618
734-615-7826



More information about the Bioconductor mailing list