Re: [R] Matrix heatmap

2012-05-10 Thread Petr PIKAL
Hi > > how do I plot only the data below 10? everything is white for the 0-10 and > 10-90 is black .. What data below 10? I do not see any. You posted some mails before but I do not keep all mails from R. Only those which helped me somehow. Basically x <- sample(1:100, 100, raplace=TRUE) x[x

Re: [R] Matrix heatmap

2012-05-10 Thread fjucks
how do I plot only the data below 10? everything is white for the 0-10 and 10-90 is black .. those functions which do this? was bad for such basic questions, but I started tinkering with R is 6 days -- View this message in context: http://r.789695.n4.nabble.com/Matrix-heatmap-tp4619084p4625021.ht

Re: [R] Matrix heatmap

2012-05-10 Thread Petr PIKAL
Hi what is wrong with heatmap(as.matrix(test), col=my.colors(25)) with test from your dput Regards Petr > The heat map generated the correct result: > > library(gplots) > arq <-read.table("l") > matrix_l <-data.matrix(arq) > my.colors <- > colorRampPalette(c > ("gray0","gray10","gray20","gr

Re: [R] Matrix heatmap

2012-05-09 Thread fjucks
as was follows: library(gplots) arq <-read.table("r") matrix_l <-data.matrix(arq) pdf("heatmap.pdf", height = 10 , width=10) #paleta de 10 cores - sentido branco -> preto my.colors <- colorRampPalette(c("gray100","gray90","gray80","gray70","gray60","gray50","gray40","gray30","gray20","gray10")) h

Re: [R] Matrix heatmap

2012-05-09 Thread fjucks
last doubts, how do I remove these trace that sits on top of colors? -- View this message in context: http://r.789695.n4.nabble.com/Matrix-heatmap-tp4619084p4621466.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org m

Re: [R] Matrix heatmap

2012-05-09 Thread fjucks
I think it worked here, the data of 25 families are wrong, I'll pack up and post already! earned -- View this message in context: http://r.789695.n4.nabble.com/Matrix-heatmap-tp4619084p4621364.html Sent from the R help mailing list archive at Nabble.com. _

Re: [R] Matrix heatmap

2012-05-09 Thread fjucks
http://r.789695.n4.nabble.com/file/n4621356/Captura_de_tela-13.png The heat map generated the correct result: library(gplots) arq <-read.table("l") matrix_l <-data.matrix(arq) my.colors <- colorRampPalette(c("gray0","gray10","gray20","gray30","gray40","gray50","gray60","gray80","gray90","gray100

Re: [R] Matrix heatmap

2012-05-09 Thread fjucks
I just do not understand what these parameters that must pass the heat map -- View this message in context: http://r.789695.n4.nabble.com/Matrix-heatmap-tp4619084p4620958.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project

Re: [R] Matrix heatmap

2012-05-09 Thread BrittD
I would leave my table as a heatmap where darker colors represent higher similarity, and the lighter colors represent less level of similarity. I'm using version 2.11 of R. I once used this code, maybe it will help you: #dendogram plot(dendro15, labels = cellType) ### I first made a dendrogra

Re: [R] Matrix heatmap

2012-05-09 Thread Petr PIKAL
Hi > > >arq <-read.table("file") > > arq_matrix <-data.matrix(arq) Are you sure that arg_matrix is numeric? Did you check it somehow? > >dput(arq) You forgot to include dput(arg) result. Without that only you know what arg is. > > arq_heatmap <- heatmap(arq_matrix, Rowv = NA, Colv = NA,col

Re: [R] Matrix heatmap

2012-05-09 Thread fjucks
>arq <-read.table("file") > arq_matrix <-data.matrix(arq) >dput(arq) > arq_heatmap <- heatmap(arq_matrix, Rowv = NA, Colv = NA,col = heat.colors > (256), scale = "column", margins =c(5,10)) dput done with this command, but still gave the same .. I do it before generating the heatmap? would be

Re: [R] Matrix heatmap

2012-05-09 Thread fjucks
this would be the same, like, I need color higher for larger numbers, type, variations of 5 om 5, for example, 0 is white, a little darker 1-5, 6-10 darker still, and so on ... -- View this message in context: http://r.789695.n4.nabble.com/Matrix-heatmap-tp4619084p4619334.html Sent from the R hel

Re: [R] Matrix heatmap

2012-05-08 Thread fjucks
I used only these three command lines in R >arq <-read.table("file") > arq_matrix <-data.matrix(arq) > arq_heatmap <- heatmap(arq_matrix, Rowv = NA, Colv = NA,col = cm.colors > (256), scale = "column", margins =c(5,10)) Excuse me if poorly written, because I'm Brazilian -- View this messa

Re: [R] Matrix heatmap

2012-05-08 Thread Rui Barradas
Hello, Please read the posting guide, like this it's difficult for us to give a sensible an answer. In particular, 1. Use R syntax, your "table" seems to be a "matrix" or "data.frame". Which is it? 2. Post your data using dput(). Just copy it's output and paste it in here, then, we'll beble t

[R] Matrix heatmap

2012-05-08 Thread fjucks
I would like to organize my data as follows: I have a table that contains various data, and the numbers represent a level of similarity between these data, eg RF00013 has 100% similarity with the data RF00014. I would leave my table as a heatmap where darker colors represent higher similarity, a