the order of the column name in heatmap
1
0
Entering edit mode
xiangxue Guo ▴ 70
@xiangxue-guo-3524
Last seen 9.6 years ago
HI, Does anybody know how to control the order of the column names displaying in the heatmap (heatplot)? I was trying to compare two heatmaps with same set of genes as row names and same set of patient samples as column names. The result shows a different order of column names. I want they display in the same order in the heatmap pictures. regards, Xiang
• 1.4k views
ADD COMMENT
0
Entering edit mode
@steve-lianoglou-2771
Last seen 13 months ago
United States
Hi, On Thu, Aug 26, 2010 at 2:42 PM, xiangxue Guo <xiangxue_guo at="" yahoo.com=""> wrote: > HI, > > Does anybody know how to control the order of the column names displaying in the heatmap (heatplot)? > > I was trying to compare two heatmaps with same set of genes as row names and same set of patient samples as column names. The result shows a different order of column names. > > I want they display in the same order in the heatmap pictures. You will want to play with the value of the Colv parameter -- try setting it to NULL, or simply an integer vector indicating the order of the columns that you want(?). Read the help for ?heatmap and its explanation for Colv (and Rowv, if you like) to get a better picture, but one of those two should do what you want. -- Steve Lianoglou Graduate Student: Computational Systems Biology ?| Memorial Sloan-Kettering Cancer Center ?| Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.org/~lianos/contact
ADD COMMENT
0
Entering edit mode
I think, in heatplot, the order is changed because of dengrograms... if they do not require them, try to set them off. Then you will possibly see what you want... Xianghui On Fri, Aug 27, 2010 at 2:58 AM, Steve Lianoglou < mailinglist.honeypot@gmail.com> wrote: > Hi, > > On Thu, Aug 26, 2010 at 2:42 PM, xiangxue Guo <xiangxue_guo@yahoo.com> > wrote: > > HI, > > > > Does anybody know how to control the order of the column names displaying > in the heatmap (heatplot)? > > > > I was trying to compare two heatmaps with same set of genes as row names > and same set of patient samples as column names. The result shows a > different order of column names. > > > > I want they display in the same order in the heatmap pictures. > > You will want to play with the value of the Colv parameter -- try > setting it to NULL, or simply an integer vector indicating the order > of the columns that you want(?). > > Read the help for ?heatmap and its explanation for Colv (and Rowv, if > you like) to get a better picture, but one of those two should do what > you want. > > -- > Steve Lianoglou > Graduate Student: Computational Systems Biology > | Memorial Sloan-Kettering Cancer Center > | Weill Medical College of Cornell University > Contact Info: http://cbio.mskcc.org/~lianos/contact > > _______________________________________________ > Bioconductor mailing list > Bioconductor@stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: > http://news.gmane.org/gmane.science.biology.informatics.conductor > [[alternative HTML version deleted]]
ADD REPLY

Login before adding your answer.

Traffic: 601 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6