[BioC] heatmap.2 x-axis label order problem
James W. MacDonald
jmacdon at uw.edu
Fri Jul 25 01:32:05 CEST 2014
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
More information about the Bioconductor
mailing list