[R] Heatmap, and heatmap.2 gave different figures for the same dataset

2013-12-12 Thread capricy gao
I have a huge dataset(15k X 18) and tried to use the heatmap in R to examine the patterns. However, I found that heatmap and heatmap.2 gave me completely different outputs. Here are the codes: dim(as.matrix(data.dcpm)) [1] 15462    18 heatmap(as.matrix(data.dcpm),

Re: [R] Heatmap, and heatmap.2 gave different figures for the same dataset

2013-12-12 Thread Kevin Wright
Read the help page for both and pay particular attention to the scale argument. Kevin Wright On Thu, Dec 12, 2013 at 9:45 AM, capricy gao capri...@yahoo.com wrote: I have a huge dataset(15k X 18) and tried to use the heatmap in R to examine the patterns. However, I found that heatmap and

Re: [R] Heatmap, and heatmap.2 gave different figures for the same dataset

2013-12-12 Thread capricy gao
Thank you very much for the hints. I fixed the problem. On Thursday, December 12, 2013 2:08 PM, Kevin Wright kw.s...@gmail.com wrote: Read the help page for both and pay particular attention to the scale argument. Kevin Wright On Thu, Dec 12, 2013 at 9:45 AM, capricy gao