Displaying 20 results from an estimated 30000 matches similar to: "set argument of a function by string variable"
2008 May 14
4
Heatmap.2 - eliminate cluster and dendrogram
Using the heatmap.2 function, I am trying to generate a heatmap of a
2 column x 500 row matrix of numeric values. I would like the 1st
column of the matrix sorted from the highest to the lowest values -
so that the colors reflected in the first column of the heatmap (top
to bottom) go from red to green.
After sorting the matrix (z), I tried the following command, but the
data remains
2012 Sep 09
3
how to save a heatmap.2 in png /jpeg /tiff
Hey, I am still working on my heat map (for those who are read my previous post about row.names)…
Now, I would like to save my heat map.2 in .png or .tiff in order being able to work on the picture in photoshop, but it doesn't work.
I'am using (as I have found on some forum)
> png("heatmap.2.png) # and it just doesn't work. when I try doing it with::
2010 Mar 16
1
heatmap.2 - ColSideColors question
Hi,
I wanted to make more than one side color bar. For example, I can make one side color bar (col1) with the following code:
-----------------------------------
library(gplots)
mat <- matrix(sample(1:100,40),nrow=5)
class1 <- c(rep(0,4),rep(1,4))
col1 <- ifelse(class1 == 0,"blue","red")
class2 <- c(rep(1,3),rep(2,5))
col2 <- ifelse(class2 ==
2004 Sep 02
3
Problems with heatmap.2
Hi
When I give the command:
>
heatmap.2(as.matrix(d),Rowv=as.dendrogram(hc.gene),Colv=FALSE,scale="row
",trace="none",col=greenred.colors(79))
The resulting heatmap has re-ordered my columns! This is time-course
data, and I don't want my columns re-ordered! Note from the help:
Rowv: determines if and how the _row_ dendrogram should be
reordered.
2010 Oct 08
2
Heatmap/Color Selection(Key)
Hi
I made heatmap of QTL based on Lod score. Where I have traits in columns and
marker data (rows). I can not cluster both column and rows as I need the
right order for marker data.
Can someone suggest me better way of generating heatmaps especially the
colour key I want to select to visualize the results which are more
interesting to look at.
> library(gplots)
>
2009 Aug 24
1
Saving heatmaps as PDFs
Hi,
I'm trying to save heatmaps as PDFs. However, the PDF version of the
heatmaps (Heatmap_CAFvsTNF_run2.pdf) is blurred when compared to its
counterpart, which was saved manually by using the software
"Grab" (Heatmap_CAFvsTNF_run2.tiff).
-----R code--------
sample_output <- "stroma_run2"
filename <-
2009 Jan 20
1
heatmap.2 color issue
Dear All:
I tried to use heatmap.2 to generate hierarchical clustering using the following command:
heatmap.2(datamatrix, scale="row", trace="none", col=greenred(256), labRow=genelist[,1], margins=c(10,10), Rowv=TRUE, Colv=TRUE)
datamatrix is subset of a RMA normalized data subset by a genelist.
The problem is a lot of times, the z-score in key are from, like -5 to 15 or
2010 Mar 20
1
abline on heatmap
Hi,
Is there a way I can draw an abline on a heatmap? I try the abline function, but don't get the line. My sample code is:
mat <- matrix(sample(1:100,40),nrow=5)
heatmap(mat,col=greenred(75),trace="none",
dendrogram = "column",labCol = NULL)
abline(h=5,v=4)
thanks!
[[alternative HTML version deleted]]
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",
2004 Sep 07
1
gridBase and heatmap
I would like to use gridBase to place four separate heatmaps (actually,
a stripped-down heatmap.2 from ght gregmisc package that contains only
the "image" part) into four different viewports. I can get the
placement correct, but I keep 'losing' the previous plot. Any
suggestions?
Here is some quick example code trying to put a heatmap into the left
viewport and then
2009 Mar 17
1
Adding labels to heatmaps from image()
Hi,
I have been trying to add labels to the rows of a heatmap produced using image() function. It is simply not working. Here is what I did.
A2Rplot.hclust(hcc,k=length(num),col.up="black",col.down=num,lty.up=2,lty.down=1,lwd.up=1,lwd.down=2,show.labels=FALSE)
#used the above external program to create a colored dendrogram
xsort <- x[1:nrow(x), hcc$labels[hcc$order]]
2005 Aug 03
3
red-black-green color palette?
I'm working on some heatmaps, and the person I'm working with would
prefer a red-black-green color palette (red denoting gene induction and
green denoting gene repression). Does such a palette exist already?
If not, is there an easy way to create one?
Thanks,
Jake
2012 Jul 30
1
Z score in gplots
Hi,
Can anyone tell me how to set Z-score according to my own requirement as
the below code is taking as per the file entries. Any help would
be appreciable.
library(gplots)
x=read.table("final.txt", header=TRUE)
mat=data.matrix(x)
heatmap.2(mat,
col=colorRampPalette(c("green","white","red"))(256),
#col=greenred(75),
Rowv=TRUE,
Colv=FALSE,
distfun = dist,
2006 Feb 22
4
heatmap.2 in gplots package
Hello all,
I am using the heatmap.2 function in the gplots package. I want to supress the reordering of the columns of the data matrix i pass to the function. I used the statement,
heatmap.2(z,Colv=FALSE,dendrogram="row",col=redgreen(75))
where z, is the matrix of data. The output i want should have the rows reordered along with the dendrogram and the columns should be in the original
2001 Aug 08
1
Strategy for creating a palette...?
Dear all,
I'm generally not a big fan of GUIs, but I have just discovered one thing
where a GUI would be a nice thing: creating color palettes.
I'm creating an "image", for transparencies for a lecture I'm giving, so
this is going to look great... :-) What I'm out for, is to make green
tones and red tones, and a relatively sharp break between them. This break
will
2008 Jun 24
3
heatmap and continuous variable
Dear All,
I want to plot a heat map with annotated columns. Both functions heatmap
(stats) and heatmap.2 (gplots) can plot a horizontal side bar that can
be used to visualize a categorical variable. In addition to a
categorical variable, I would like to visualize a continuous variable.
This could be done by small bars, a curve or simply numbers above the
columns. (The Sample names are already
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
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 Mar 24
1
segfault when running heatmap()
Hi, I was wondering if someone in the mailing list has any insight into this
segfault error that I consistently find when running a script containing
heatmap() in R 2.8.1 and 2.8.0 on a Linux 64-bit machine.
Some points:
1. This occurs when running heatmap().
2. Interestingly, if I source() the script or copy and paste the script in
its entirety, this error occurs. However, if I run the
2009 Jul 21
1
problem with heatmap.2 in package gplots generating non-finite breaks
I have written a wrapper for heatmap.2 called
heatmap.w.row.and.col.clust which auto-generates breaks using
breaks<-round((c(seq(from=(-20 * stddev), to=(20 * stddev))))/20,
digits = 2) #(stddev in this case = 2.5)
This has always worked well in the past but now I am getting an error
that non-finite breaks are being generated. Drilling down, it seems
that my wrapper is generating finite