similar to: Need help on heatmap, K-means and hhierarchical clustering methods

Displaying 20 results from an estimated 3000 matches similar to: "Need help on heatmap, K-means and hhierarchical clustering methods"

2009 Jul 23
0
using k-means clustering in conjunction with heatmap.2 function
Hello, I am trying to create a heatmap that clusters based on a k-means scheme rather than a hierarchical clustering scheme. Suppose I have the following input data, located in sample.table: x1 x2 x3 x4 x1 17.198 16.306 16.806 16.374 x2 14.554 10.866 15.780 14.596 x3 14.374 14.118 14.569 17.352 x4 17.505 14.596 15.738 14.070 By using the heatmap.2 function as follows, I can create a heatmap
2011 Apr 11
1
heatmap clustering dendrogram export
Hi, I am a beginner for R. I had use gplots to generate a heatmap as following: >heatmap.2(matrix, col=topo.colors(75), dendrogram="column", Rowv=FALSE, trace="none", key=TRUE, keysize=0.8, density.info="none", cexRow=0.2, cexCol=0.6) It work well. It generate heatmap whith rcolumn clustering dendrogram and I can export a very nice graph. But I don not know how
2012 Jun 06
0
heatmap.2 clustering and adding add.expr
Hi , I am trying to plot a heatmap with a correlation matrix and trying to highlight significant correlations . i am using my matrix d874n has 78 columns ex2<-corAndPvalue(data.matrix(d874n),use = "pairwise.complete.obs") ##creating a matrix of true false using p values sig<-ex2$p<0.05 nx=78 ny=78 makeRects <- function(tfMat,border){ cAbove =
2010 Mar 03
1
Heatmap reordering of dendrogram to hierarchical clustering
Dear list members, I have been using R to create a heatmap where my data has continous variables from 0 to 100. When I create the heatmap, although the branches are correct, they do not order themselves so that the row with the most zeros is at one end and the row with the most 100s is at the other, which is what I would like them to do, so as to create a colour gradient down the graphic. I have
2011 Jul 24
0
setting distance matrix and clustering methods in heatmap.2
heatmap.2 defaults to dist for calculating the distance matrix and hclust for clustering. Does anyone now how I can set dist to use the euclidean method and hclust to use the centroid method? I provided a compilable sample code bellow. I tried: distfun = dist(method = "euclidean"), but that doesn't work. Any ideas? library("gplots") library("RColorBrewer") test
2004 May 05
1
heatmap for gene clustering?
I am using "heatmap" to cluster genes in microarrays. It works fine with 100~200 genes. But when I draw a heatmap with 600 genes, I can't read a clustering tree well. Maybe I will be able to read it by dividing it into several subtrees using a function such as "subtree". I found "subtree" in Splus, but not in R. Is there a similar function in R? Or, without it,
2013 Dec 12
1
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,
2011 Feb 09
2
heatmap-how to change the order of the rows (genes)
Hi, I have a question about the heatmap dendrogram in R. I loaded my data matrix in command heatmap(), and it gave me a heatmap accordingly, and the rows (genes) also were clustered accordingly. But now I don't want the genes clustered in that way, I have a new order of these genes, and want the rows of the heatmap are drawed as the order I give. Could anybody help me on that? Thank you!
2011 Jun 02
2
heatmap question
Hi, I have what would seem to be a very simple problem but have been unable to find any way to go about solving it: I am using heatmap.2 to create a heatmap and by default the x axis label is at the bottom of the heatmap, I simply want to move the label to the top of the heatmap. Any help with this would be greatly appreciated. Thanks, Mark
2008 May 16
2
heatmap on pre-established hclust output?
Hi, Can someone please guide me towards how to produce "heatmap" output from the output of "hclust" run prior to the actual "heatmap" call? I have some rather lengthy clustering going on and tweeking the visual output with "heatmap" recalculating the clustering every time is not feasible. Thanks, Joh
2010 Feb 10
2
color palette heatmap
Hi, I'm kinda new of the R world. I need to use the heatmap or heatmap.2 function to plot correlation values. 2 questions: - how can I specify a color palette? (would like to have a transition from blue(-1) to white(0) to red(1)) - how can I use heatmap.2 imposing a specific order (like hclust.order)? I mean, I don't want heatmap.2 to re-cluster/re-order my data but just to plot them
2004 Aug 25
1
Problems with Heatmap
Hi I am having some problems getting my heatmap to be the right size! Let me explain. I am experienced at getting an hclust or a dendrogram object to be the right size. For example, I have a dataset which has 4000 rows, which I clustered using hclust and I wanted to plot it as a horizontal dendrogram. So I used jpeg(), set the image height to be 4000 and plotted the dendrogram and got the
2007 Oct 08
2
heatmap
Hi, I am having troubles with heatmap(). I have a matrix containing pairwise distance values and I want to plot this matrix with heatmap. I wonder now what distfun is for. Is a distance matrix computed from my initial matrix again and then plotted? cheers, andreas
2009 Sep 12
0
consistent results with heatmap.2
Hi, I am trying to create a heatmap with some specific requirements. Specifically, I need to be able to center the color-scale around 0, and I need to truncate the data so that a few extreme values do not cause the rest of the heatmap to appear black (on a red/green scale). After reading through and experimenting with heatmap, heatmap.2, heatmap_plus, and heatmap_2, I believe heatmap.2 will
2011 Aug 08
1
Creating a simple 1-row heatmap
Howdy, I am trying to make a simple monochrome heatmap from 1 row of data. Essentially, I just want a long bar where black represents the max value in the data, white is the minimum, and all values in between are interpolated appropriately. I have tried using heatmap and heatmap.2, but both have issues. heatmap seems to be restricted to only drawing a square plot, and this data requires a
2005 Jun 16
2
heatmap aspect ratio
Hi all, Does anyone know of a fairly easy way to "stretch" a heatmap vertically? I've got 42 arrays and would like to be able to see as many significant genes as possible (right now I can only get 50 genes with it still being readable). In some comparisons there are several hundred significant genes. I've fiddled with the "asp" argument, but that doesn't
2005 Sep 12
2
heatmap question
I'm having trouble with the heatmap function in R. When I try and heatmap something, my graphics window does not open. Does anyone know if this is a glitch in the version of R that I'm using? I've listed my version of R below, as well as a simple heatmap command. I'm running the program on a Mac, OS 10 v 10.3.9. Any suggestions?? Thanks! Peter > version _
2007 Nov 22
2
Heatmap problem
Hi friends, I used heatmap(as.matrix(y2),col=rainbow(256),scale = "column") to generate the heatmap. But it did not show the code that which color correspond the value. Is there any parameter for this in heatmap()? Thanks a lot! Allen [[alternative HTML version deleted]]
2007 Dec 06
2
hclust in heatmap.2
Dear list, I am using heatmap.2(x) to draw a heatmap. Ideally, I want to the matrix x clustered only by columns and keep the original order of rows unchanged. Is there a way to do that in heatmap.2()? Thanks a lot! Any suggestions will be appreciated! Best, Allen [[alternative HTML version deleted]]
2004 Dec 15
1
hclust and heatmap - slightly different dendrograms?
Good afternoon, I ran heatmap and hclust on the same matrix x (strictly, I ran heatmap(x), and hclust(dist(t(x))), and realized that the two dendrograms were slightly different, in that the left-right arrangement of one pair of subclusters (columns) was reversed in the two functions (but all individual columns were grouped correctly). Looking through the code for heatmap as a most definite