Displaying 20 results from an estimated 8000 matches similar to: "row labels in heatmap.2(package gplots)"
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",
2009 Sep 21
1
Specific criteria for color palette using heatmap.2
I'm trying to display the probability space of a function and wanted to see
specifically where the maximum posterior probability is.
data=read.table("PosteriorData",header=F)
mat=as.matrix(data)
heatmap.2(mat/max(mat,na.rm=T),dendrogram=c("none"),trace=c("none"),
Rowv=F,Colv=F,labRow=3*c(10:-10),labCol=3*c(-10:10),symm=T,col=rainbow(100))
As the
2004 Feb 16
1
labRow/labCol options in heatmap()
The function heatmap() allows to specify row/column labels
via the options labRow/labCol. From the code of heatmap(),
I understand that when no labels are specified, the row/column
labels (or indices) of the input matrix are taken as labels and
re-ordered together with the rows and columns of the matrix before
plotting, whereas labels supplied via labRow/labCol are plotted
in the original order.
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
2012 Jan 28
1
gplot heatmap
Hi,
I am drawing a heat map using gplots of R package. The file (new4) is
having values 0 and 1 only.
library(gplots)
library(marray)
x=read.table("new4", header=TRUE)
mat=data.matrix(x)
heatmap.2(mat,
col=colorRampPalette(c("black","red"))(256),
#col=greenred(75),
Rowv=TRUE,
Colv=TRUE,
distfun = dist,
hclustfun = hclust,
dendrogram = c("row"),
scale =
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::
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
2020 Jun 21
1
Possible bug in heatmap()?
Dear All,
There might be a bug in heatmap():
x <- matrix(rnorm(10*5), 10, 5)
heatmap(x, labCol=1:5)
Error in axis(1, 1L:nc, labels = labCol, las = 2, line = -0.5, tick = 0, :
'at' and 'labels' lengths differ, 5 != 10
Works fine under 4.0.1. Looking at the code from 4.0.1 vs. Rdevel, esp. this part sticks out:
labRow <- labRow[rowInd] %||% rownames(x) %||%
2010 Jul 19
1
heatmap.2() yielding an inappropriate key?
Esteemed R-users,
heatmap.2() is yielding an inappropriate key based on my colors and
break-points.
In the reproducible example below, the key is inappropriate (to me) because-
1. 'Orange' is simply not represented in the key, despite its prescence
in the heatmap.
2. The proportions of the key are clearly out, ie., my largest bin, (0.1
- 0.2) is half the range, but this bin (colored
2007 Jul 19
3
help with heatmap - how to remove annoying "X" before numeric values?
Hello All,
I have a simple question based on how things are labeled on my heat map;
particularly, there is this annoying "X" that appears before the numeric
value of all the labels of my columns.
Let's say I have the following silly data, stored in "temp.txt"
1905 1910 1950 1992 2011 2020
Gnat 0.08 0.29 0.29 0.37 0.39 0.43
Snake
2010 Feb 07
3
specifying colors in a heatmap/image -like plot
Hi,
I have searched for a solution but I failed to find an answer. I am hoping
you may be able to help me.
I have a data set where I have observations for a number of units (n =~40)
over a period of time (t =~100) and I have a variable (Z) that codes a
categorical variable for each observation. I want to produce a 2D plot where
time is on the x-axis and units are on the y-axis. Then each block
2006 May 16
0
reordering materix presentation in heatmap.2 in the 'gplots' library
Dear R users,
I'm trying to create images of 2 symmetrical matrices using heatmap.2 of the 'gplots' library. Both matrices have the same row and column names
For the first matrix I'm using the default clustering and column denrogram options:
heatmap.2(Matrix1, symm=T, breaks=20, col=rich.colors(19), main="matrix1", density.info="histogram",
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
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
2007 Sep 05
1
problem formatting and positioning title in heatmap
I am using heatmap with the arguments below. The title size stays the
same no matter what I set cex.main to. Is this expected? Can I adjust
the title size in heatmap?
Also, the position of the main title is at the very upper edge of the
output and if I use a "\n" to stack the title the upper line is out of
bounds and doesn't show up.
I am outputting to pdf.
Any help? Thanks,
2009 May 16
6
Modificando heatmaps
Hola a todos,
Estoy trabajando con la función heatmap.2() de la libreria ggplots. A
continuación encontrarán un ejemplo de la estructura de mis datos y el
código para generar el gráfico que me gustaría modificar:
# Datos
set.seed(123)
x <- matrix(rnorm(8*30), ncol = 8)
rownames(x) <- paste(''GM10A'',1:30,sep="")
colnames(x) <-
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
2012 May 09
12
Matrix heatmap
I would like to organize my data as follows:
I have a table that contains various data, and the numbers represent a level
of similarity between these data,
eg RF00013 has 100% similarity with the data RF00014.
I would leave my table as a heatmap where darker colors represent higher
similarity, and the lighter colors represent less level of similarity.
I'm using version 2.11 of R.
these
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,
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 <-