heatmap.2 x-axis label order problem
1
0
Entering edit mode
Rao,Xiayu ▴ 550
@raoxiayu-6003
Last seen 8.9 years ago
United States
Hello, I encountered a strange problem. When I executed the same code in R-windows and in R-linux, the resulted heatmaps have the exact same figure(clustering), but for the x-axis label the order of the duplicates are reversed (the sample orders are the same). For example, R-windows: sample1-R1, sample1-R2, sample2-R2, sample2-R1 R-3.1.1 R-linux: sample1-R2, sample1-R1, sample2-R1, sample2-R2 R-3.1.0 on HPC server Can anyone provide any suggestions to check the problem? Thank you very much! Thanks, Xiayu [[alternative HTML version deleted]]
• 2.0k views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 3 hours ago
United States
Hi Xiayu, This isn't really a Bioconductor question, as gplots is a CRAN package. So you should really be asking on R-help. But I get identical results running this code on Linux and Windows: library(gplots) set.seed(0xabeef) mat <- matrix(rnorm(400), ncol = 4) colnames(mat) <- paste0("sample", rep(1:2, each=2), "-", rep(c("R1","R2"), 2)) heatmap.2(mat, cexCol = 0.7, margins = c(5,10)) Best, Jim On 7/24/2014 5:59 PM, Rao,Xiayu wrote: > Hello, > > I encountered a strange problem. When I executed the same code in R-windows and in R-linux, the resulted heatmaps have the exact same figure(clustering), but for the x-axis label the order of the duplicates are reversed (the sample orders are the same). > > For example, > R-windows: sample1-R1, sample1-R2, sample2-R2, sample2-R1 R-3.1.1 > R-linux: sample1-R2, sample1-R1, sample2-R1, sample2-R2 R-3.1.0 on HPC server > > Can anyone provide any suggestions to check the problem? > Thank you very much! > > Thanks, > Xiayu > > > [[alternative HTML version deleted]] > > _______________________________________________ > Bioconductor mailing list > Bioconductor at r-project.org > 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 University of Washington Environmental and Occupational Health Sciences 4225 Roosevelt Way NE, # 100 Seattle WA 98105-6099
ADD COMMENT

Login before adding your answer.

Traffic: 573 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