Displaying 20 results from an estimated 4000 matches similar to: "heatmap on pre-established hclust output?"
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
2003 Sep 24
1
heatmap and hclust
Hi all,
The function heatmap uses the functions dist and hclust with default
parameters.
How to change these parameters? For example, i want to use the ward
criterion for hierarchical
clustering with binary distance.
Best regards,
Olivier.
2007 Jul 19
3
Error: evaluation nested too deeply when doing heatmap with binary distfunction
Hi netters,
I have a matrix X of the size (1000,100). The values are from -3 to +3.
When I tried
heatmap(X,
distfun=function(c),dist(c,method="bin"),hclustfun=function(m),hclust(m,method="average"))
I got the error message:
Error: evaluation nested too deeply: infinite recursion /
options(expressions=)?
However, if I used default parameters for distfunction:
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]]
2013 Aug 22
1
Interpreting the result of 'cutree' from hclust/heatmap.2
I have the following code that perform hiearchical clustering and plot
them in heatmap.
__
library(gplots)
set.seed(538)
# generate data
y <- matrix(rnorm(50), 10, 5, dimnames=list(paste("g", 1:10, sep=""),
paste("t", 1:5, sep="")))
# the actual data is much larger that the above
# perform hiearchical clustering and plot heatmap
test <- heatmap.2(y)
2006 Mar 09
1
Identifying or searching for labels in a hclust/dendrogram/heatmap
Hi
Sorry if this is in the help :-S
I've looked at example(dendrogram) and though it gives some indication of what I want, it doesn't do all.
OK, so here is what I want to do: draw a tree, and then have an action, on user-click, to either draw a sub tree or a plot of the data. I also want users to be able to search for a particular label and have it highlighted on the tree, say in
2009 Apr 07
2
heatmap.2 no reordering of the columns and rows
Hi,
I need to generate a heatmap on a square matrix and wouldn't want to reorder the columns and the rows on the heatmap display.
I have used the options Rowv=NULL and Colv=NULL but doesn't seem to work. Following is a snippet of the heatmap function i am using.
args <- commandArgs();
inputfile <- args[2]
imgfile <- args[3]
bitmap(imgfile, height=15, width=15, res=100,
2009 Nov 17
2
question about function heatmap
Hi,
I am using the function heatmap(stats) to draw a microarray heatmap,
columns are samples and rows are gene features.
I did a 2D clustering during the heatmap drawing. The features and
samples indeed cluster into several blocks both vertically and
horizontally.
I can get the index of re-ordered rows and columns after the heatmap
drawing by typing the the return variable of the heatmap
2008 Jun 16
1
heatmap.2 dendogram algorithm
Hello
does anyone know what algorithm is used to produce the hierarchical
clustering in the gplots package using the function heatmap.2? I think it
may be the complete linkage clustering algorithm, but I can't find a source
that seems reliable.
Thank you and sorry if I posted this in the wrong place. If I have, please
let me know and I will move it to the appropriate list.
--
View this
2013 Oct 21
3
Error in heatmap
Hi,
Could you please help?
Heatmap doesn't work with:
> heatmap(as.matrix(SPIV2),na.rm = T)
Error in hclustfun(distfun(x)) :
NA/NaN/Inf in foreign function call (arg 11)
There are no 0 data rows or column
Thanks a lot
Regards
---------------------------------------
David
2004 Sep 07
3
heatmap help
Dear R wizards,
Hopeful someone can help me with what I believe is a pretty simple task. I
pretty new to R so some (much) of the obvious escapes me. How do I get a
distance matrix into heatmap? What do I tell distfun if what I'm trying to
map is already an ordered distance matrix? I tried >heatmap(x,
distfun=as.dist(x)) where x is the distance matrix but R gave me an error.
Thanks in
2010 Sep 18
1
Drawing Heatmap using gplots
Hi,
I am using heatmap.2 of gplots to make heatmaps of my the attached file. I
am giving my code for the same ..
library(gplots)
x=read.table("1.txt", header=TRUE)
mat=data.matrix(x)
heatmap.2(mat, col=greenred(75),
Rowv=TRUE,
Colv=TRUE,
distfun = dist,
hclustfun = hclust,
dendrogram = c("both"),
scale = c("row"),
na.rm=TRUE,
trace="none",
2003 Nov 03
0
mva Hclust, heatmap and plotting functions
Hi All
Not sure if this a bioconductor question or general R mailing list
so apologies if this has gone to the wrong one.................
When plotting dendrograms created by hclust you can "identify" clusters
by clicking on the graphics and returning a list of what is contained in
each cluster. However I'd like to be able to "zoom in" on specific
clusters and plot
2010 Sep 22
0
How to Ignore NaN values in Rows when using hclust function in making Heatmap??
I am making heatmaps for a dataset (~ 300*600 matrix) with the following R
script (I am not familiar with R and this is the first time I am using it).
library("gplots")
library("Cairo")
mydata <- read.csv(file="data.csv", header=TRUE, sep=",")
rownames(mydata)=mydata$Name
mydata <- mydata[,2:297]
mydatamatrix <- data.matrix(mydata)
mydatascale
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
2004 Jul 21
2
Cutting heatmap dendrogram
Hello,
I've been clustering my data using hclust and cutting the resulting tree
with cutree. Separately, I visualize the clusterings with heatmap. Is it
possible to have the dendrogram on the heatmap reflect the cutree results?
That is, instead of having one large dendrogram, it would have 4 or 25 in
the example below. Any guidance on if that's possible or not, and what
kinds of
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
2007 Apr 25
1
heatmap and phylogram / dendogram ploting problem, ape package
I am having trouble displaying a dendrogram of evolutionary
relationships (a phylogram imported from the ape package) as the
vertical component of a heatmap, but keeping the hierarchical
clustering of the horizontal component. The relationships of the
vertical component in the generated heatmap are not that of the
dendrogram, although the ordering is.
In more detail, I am attempting to generate
2006 Mar 06
2
Problems with heatmap.2 in the gregmisc package
Hi
Sorry to revisit an old problem, I seemed to solve this in 2004, only
for it to resurface :-S
I am trying to plot a heatmap, and I don't want the columns of my matrix
re-ordered. The function doesn't seem to behave as the help would have
you believe:
a <- matrix(rnorm(100),nr=20)
a.d <- dist(a)
a.hc <- hclust(a.d)
a.de <- as.dendrogram(a.hc)
# columns are re-ordered