capricy gao

2013-Dec-12 15:45 UTC

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

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), col=topo.colors(100)) > heatmap.2(as.matrix(data.dcpm), col=topo.colors(100), key=TRUE, density.inf="none",trace="none", scale="none")------- The outputs are attached here. Could anyone help me figure out why? Thanks a lot:)

Kevin Wright

2013-Dec-12 20:08 UTC

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

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 <capricyg@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 heatmap.2 gave me > completely different outputs. > > Here are the codes: > > ------------ > > > dim(as.matrix(data.dcpm)) > [1] 15462 18 > > > > heatmap(as.matrix(data.dcpm), col=topo.colors(100)) > > heatmap.2(as.matrix(data.dcpm), col=topo.colors(100), key=TRUE, > density.inf="none",trace="none", scale="none") > ------- > > The outputs are attached here. > > Could anyone help me figure out why? > > Thanks a lot:) > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > >-- Kevin Wright [[alternative HTML version deleted]]