Re: [R] Heatmap help

2017-03-05 Thread Patricia J. Hawkins
Hi, you have a couple of things going on here. You can reorder your matrix by creating an index like this: > A_index=c(grep(".A", colnames(A)), grep(".B", colnames(A))) and do this: > heatmap.2(A[,A_index], dendrogram="col", Rowv = colnames(A)[A_index], > tracecol =

Re: [R] Heatmap help

2017-03-04 Thread André Luis Neves
Thanks, Patricia! I will do it by the rows, and your explanations were great and easy to follow! Thank you very much for your help and time. Andre On Mar 4, 2017 4:18 PM, "Patricia J. Hawkins" wrote: Hi, you have a couple of things going on here. You can reorder your

[R] Heatmap help

2017-03-03 Thread André Luis Neves
Dear all, I was wondering if you could help me to construct a heat map, in which the columns are sorted by sample type (A first and then B). My reproducible example below runs, but the columns of the heatmap are not organized in the way I would like because it has first sampleA, SampleB, sampleA,

[R] Heatmap Help

2013-12-11 Thread Gaurav Pandey
Hello, I want a help, i have to make heat map.And i am using the following command In R for generating a matrix, but its returning an error,and i am not able to figure it out. Can you please tell me what is wrong? And please also suggest me how to generate a heat map. Its very urgent. Thanks a

Re: [R] Heatmap Help

2013-12-11 Thread Sarah Goslee
You have some randomly doubled quotation marks and parentheses. A text editor with syntax highlighting is wonderful for catching that sort of problem. Beyond that, see: ?heatmap A very urgent request suggests homework to me, which this list doesn't do. Though sometimes someone will offer a