manipulating data in heatmap, have the following data: RF00505 RF00232 RF00493 RF00231 RF00505 100.00 20.00 0.00 0.00 RF00232 100.00 00.00 100.00 100.00 RF00493 100.00 60.00 100.00 33.33 RF00231 0.00 40.00 0.00 100.00 http://r.789695.n4.nabble.com/file/n4627454/Captura_de_tela-15.png but what I do is leave my file in ascending order of families, as if this file: RF00231 RF00232 RF00493 RF00505 RF00231 100.00 40.00 0.00 0.00 RF00232 100.00 0.00 100.00 100.00 RF00493 33.33 60.00 100.00 100.00 RF00505 0.00 20.00 0.00 100.00 how to do this in R? -- View this message in context: http://r.789695.n4.nabble.com/manipulating-data-in-heatmap-tp4627454.html Sent from the R help mailing list archive at Nabble.com.
but, df1 is the row and column? As the call to dput defni them? eh my script this, but where I put these lines to order? library(gplots) arq <-read.table("table") matrix_l <-data.matrix(arq) pdf("heatmap.pdf", height = 10 , width=10) #paleta de 10 cores - sentido branco -> preto my.colors <- colorRampPalette(c("gray50","gray10","gray10","gray10","gray10","gray10","gray10","gray10","gray10","gray10")) heatmap.2(matrix_l,dendrogram="none",trace="none",Rowv=NA, Colv=NA, col=my.colors(10),margins=c(10,10)) -- View this message in context: http://r.789695.n4.nabble.com/manipulating-data-in-heatmap-tp4627454p4627695.html Sent from the R help mailing list archive at Nabble.com.