Displaying 20 results from an estimated 20 matches for "rowsidecolor".
Did you mean:
rowsidecolors
2012 Feb 28
1
Unexpected behaviour for RowSideColors in function heatmap
Hello,
I have come across some unexpected behaviour of the function heatmap in the stats package. This looks like a bug to me, but I might have misunderstood something.
When calling the function in symmetric mode, the ColSideColors are plotted correctly, but RowSideColors appear in reverse order. This code (modified from the example on the help page) demonstrates the problem:
cU <- cor(USJudgeRatings)
sideCols <- rainbow(ncol(cU))
heatmap(cU, symm = TRUE, distfun = function(c) as.dist(1 - c),
ColSideColors=sideCols, RowSideColors=sideCols)
Reversing...
2010 Feb 23
2
heatmap.3
...!is.character(ColSideColors) || dim(ColSideColors)[1] !=
nc)
stop("'ColSideColors' dim()[2] must be of length ncol(x)")
lmat <- rbind(lmat[1, ] + 1, c(NA, 1), lmat[2, ] + 1)
lhei <- c(lhei[1], 0.2, lhei[2])
}
if (!missing(RowSideColors)) {
#if (!is.matrix(RowSideColors))
#stop("'RowSideColors' must be a matrix")
if (!is.character(RowSideColors) || dim(RowSideColors)[1] !=
nr)
stop("'RowSideColors' must be a character vector of length
nrow(x)")...
2014 Sep 04
1
gplot heatmaps: clustering according to rowsidecolors + key.xtickfun
Hi there,
I have two questions about heatmap.2 in gplot.
My input is a simple square matrix with numeric values between 75 and
100 (it is a similarity matrix based on bacterial DNA sequences).
1. I can sort my input matrix into categories with rowsidecolors (in
this case, very conveniently by bacterial taxa). I do a clustering and
reordering of my matrix by Rowv=TRUE (and Colv="Rowv").
The question is now, can i combine the two features that the
clustering/reordering is done only for submatrices defined by the
vectors given in rowsideco...
2005 Jun 29
1
(PR#7972) row-side color bars ... in heatmap
...= krc <krc at odin.mdacc.tmc.edu>
>>>>> on Mon, 27 Jun 2005 21:55:37 +0200 (CEST) writes:
krc> Full_Name: Kevin R. Coombes
krc> Version: 2.1.0
krc> OS: Windows XP
krc> Submission from: (NULL) (143.111.224.169)
krc> When revC = TRUE and RowSideColors is set to a list of
krc> colors in heatmap, then the image and dendrogram are
krc> inverted, but the row-side color map does not
krc> change. The following script illustrates the problem.
krc> ##############
krc> set.seed(1023)
krc> # generate columns of...
2007 Sep 05
1
problem formatting and positioning title in heatmap
...ed? 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, Mark
heatmap(x = dataM, RowSideColors = RowSideColors,
ColSideColors=ColSideColors, main = title,
margins = c(50,50), scale= do.scale ,labRow=geneNames,
labCol=colLabels, col = hmcol, cex.main = 1,
cexRow = row.lab.mag, cexCol = col.lab.mag)
> sessionInfo()
R version 2.6.0 Under development (unstable) (200...
2005 Jun 27
0
row-side color bars do not reverse properly in heatmap (PR#7972)
Full_Name: Kevin R. Coombes
Version: 2.1.0
OS: Windows XP
Submission from: (NULL) (143.111.224.169)
When revC = TRUE and RowSideColors is set to a list of colors in heatmap, then
the image and dendrogram are inverted, but the row-side color map does not
change. The following script illustrates the problem.
##############
set.seed(1023)
# generate columns of two different types
d1 <- matrix(rnorm(100*6, rnorm(100, 0.5)), nrow=...
2006 Apr 07
2
Dealing with missing values in HeatMap generation
...ding the option rm.na = TURE):
> filename = "input_heatmap.txt"
> g <- as.matrix(filedata)
> fg <- rainbow(nrow(g), start=0, end=.3)
> gg <- rainbow(ncol(g), start=0, end=.3)
> hg <- heatmap(g, col = cm.colors(256), scale="column",na.rm = TRUE,
+ RowSideColors = fg, ColSideColors = gg, margin=c(5,10),
+ xlab = "Average per Species", ylab= "Pathways",
+ main = "heatmap(<Ka/Ks Average Data per Species>, ..., scale =
\"column\")")
Error in heatmap(g, col = cm.colors(256), scale = "column", na.rm = TR...
2009 Aug 19
1
moving color key in heatmap
...key in the upper left corner. Notice I have added side bars to the heatmap, but how could I move the color key below the image?
------
library(gplots)
data(mtcars)
x <- as.matrix(mtcars)
rc <- rainbow(nrow(x), start=0, end=.3)
cc <- rainbow(ncol(x), start=0, end=.3) res=heatmap.2(x, RowSideColors=rc, ColSideColors=cc)
Thank you very much,
Pingping Qu
-----
Cancer Research And Biostatistics (CRAB)
Seattle, WA 98101
-------
[[alternative HTML version deleted]]
2010 Mar 03
1
Heatmap reordering of dendrogram to hierarchical clustering
...Can you help? I have been using:
tmp <-read.table("Heat.txt",row.names=1,header=T)
mydata <- data.matrix(tmp)
rc <- rainbow(nrow(mydata),start=0, end=1)
cc <- rainbow(ncol(mydata), start=0, end=1)
hv <- heatmap(mydata, col = cm.colors(256), scale="column",
RowSideColors = rc, ColSideColors = cc, margin=c(5,10),
xlab = "Gene", ylab= "Species",
main = "Heatmap", reorderfun = function(mydata,w)
reorder(mydata,0.0:100.0), Colv=NULL, Rowv=T)
Thnak you,
Fearon Cassidy
Department of Zoology
Trinity College Dublin
[[alternative H...
2011 Mar 02
2
clustering problem
...;)
library(RColorBrewer)
library(gplots)
clrno=3
cols<-rainbow(clrno, alpha = 1)
clstrs <- cutree(hc, k=clrno)
ccols <- cols[as.vector(clstrs)]
heatcol<-colorRampPalette(c(3,1,2), bias = 1.0)(32)
heatmap.2(as.matrix(USArrests), Rowv=as.dendrogram(hc),col=heatcol,
trace="none",RowSideColors=ccols)
Nice, I can access 3 main clusters with cutree. But what about a situation
when I perform hclust like
hc <- hclust(dist(t(USArrests)), "ave")
which I have to do in order to speed up the clustering process. This I can
plot with:
heatmap.2(as.matrix(USArrests), Colv=as.dendro...
2010 Sep 08
1
saving heatmaps in graphical format that can be edited in graphic editor tool
...> heatmap.2(mydatamatrix, Rowv=as.dendrogram(hr), Colv=as.dendrogram(hc),
> dendrogram="both",
scale="row", col=brewer.pal(3, "YlOrRd"), cexRow=0.01, cexCol=0.01,
trace="none", density.info="none",
key=TRUE, keysize=1.5, margin=c(5,8),RowSideColor=mycolhr,
ColSideColor=mycolhc)
> dev.off()
I would like to save the file in a graphical format that can be edited later
in any image editing program (like corel). is there a way to do this in R?
Its a lot of data I plotted on heatmap (~ 300*600). The x and y labels are
difficult to read. I...
2010 Sep 08
2
saving heatmaps in graphical format that can be edited in graphic editor tools
...res=1200)
> heatmap.2(mydatamatrix, Rowv=as.dendrogram(hr), Colv=as.dendrogram(hc),
dendrogram="both", scale="row", col=brewer.pal(3, "YlOrRd"), cexRow=0.01,
cexCol=0.01,
trace="none", density.info="none", key=TRUE, keysize=1.5,
margin=c(5,8),RowSideColor=mycolhr, ColSideColor=mycolhc)
> dev.off()
I would like to save the file in a graphical format that can be edited later
in any image editing program (like corel). is there a way to do this in R?
Its a lot of data I plotted on heatmap (~ 300*600). The x and y labels are
difficult to read. I u...
2010 Mar 07
0
How the change the dimension of an individual cell [i.e. the cell corresponding to an observation in data matrix] in a heatmap.2?
...n by this function.
here is a reproducible example from the help page
library(gplots)
data(mtcars)
x <- as.matrix(mtcars)
rc <- rainbow(nrow(x), start=0, end=.3)
cc <- rainbow(ncol(x), start=0, end=.3)
hv <- heatmap.2(x, col=cm.colors(255), scale="column",
RowSideColors=rc, ColSideColors=cc, margin=c(5, 10),
xlab="specification variables", ylab= "Car Models",
main="heatmap(, ..., scale=\"column\")",
tracecol="green", density="density")
This gives me a heatmap...
2011 Oct 18
0
heatmap
...all:
##------------ Heatmap --------------
library(RColorBrewer)
rc <- grey((nrow(x):1)/nrow(x))
heatmap(data.matrix(x[,1:4]), Rowv=NA, Colv=NA, scale='none',labCol=NULL,
revC=TRUE, col = brewer.pal(9,'Greys'),
ylab='time',margins=c(6,5), cexRow=1.5, cexCol=1.5, RowSideColors =
rc)
I end up with something like attached 'heatmap'.
How can I change my call to:
1) most important: there are black strips on the right-hand side, these are
the row numbers packed one on another. How to put there time points over,
say, 500 sec epochs (1,500, 1000...)
2) put a scale on...
2009 Jul 21
1
problem with heatmap.2 in package gplots generating non-finite breaks
..."nbr" "nc"
[45] "ncol" "notecex" "notecol" "nr"
[49] "op" "retval" "revC" "rm"
[53] "rowInd" "rowsep" "RowSideColors" "Rowv"
[57] "scale" "scale01" "sepcolor" "sepwidth"
[61] "sx" "symbreaks" "symkey" "symm"
[65] "tmpbreaks" "trace" "tracecol...
2010 Sep 22
0
How to Ignore NaN values in Rows when using hclust function in making Heatmap??
...quot;, res=1200)
heatmap.2(mydatamatrix, Rowv=as.dendrogram(hr), Colv=as.dendrogram(hc),
dendrogram="both", scale="row", col=rev(heat.colors(10)), cexRow=0.08,
cexCol=0.08, trace="none", density.info="none", symkey= FALSE, key=TRUE,
keysize=1.5, margin=c(5,8),RowSideColor=mycolhr, ColSideColor=mycolhc)
dev.off()
My question is, in the dataset I have good number of rows (~ 17) that has
zero value for all the columns defined. So when I run these two command
lines,
hr <- hclust(as.dist(1-cor(t(mydatascale), method="pearson")),
method="complete&qu...
2006 Jan 23
1
lines() in heatmap()
Hello!
I looked for help through google and the help-files and spend several
hours with trial and
error, but didn't find a correct way.
It's all about lines in a heatmap to separate different data block from
each other to underline
the significance of the found clusters!
The heatmap is build like that:
heatmap(X, Rowv=NA, Colv=NA, symm=TRUE, cexRow=0.3, cexCol=0.3)
I switched the
2004 May 10
3
Colouring hclust() trees
I have a data set with 6 variables and 251 cases.
The people who supplied me with this data set believe that it falls
naturally into three groups, and have given me a rule for determining
group number from these 6 variables.
If I do
scaled.stuff <- scale(stuff, TRUE, c(...the design ranges...))
stuff.dist <- dist(scaled.stuff)
stuff.hc <- hclust(stuff.dist)
2012 Mar 30
0
R 2.15.0 is released
...C() or .Fortran() had a lack-of-protection error if the
registration information resulted in an argument being coerced to
another type.
o boxplot(x=x, at=at) with non finite elements in x and non integer
at could not generate a warning but failed.
o heatmap(x, symm=TRUE, RowSideColors=*) no longer draws the colors
in reversed order.
o predict(<ar>) was incorrect in the multivariate case, for p >= 2.
o print(x, max=m) is now consistent when x is a "Date"; also the
"reached ... max.print .." messages are now consistently using...
2012 Mar 30
0
R 2.15.0 is released
...C() or .Fortran() had a lack-of-protection error if the
registration information resulted in an argument being coerced to
another type.
o boxplot(x=x, at=at) with non finite elements in x and non integer
at could not generate a warning but failed.
o heatmap(x, symm=TRUE, RowSideColors=*) no longer draws the colors
in reversed order.
o predict(<ar>) was incorrect in the multivariate case, for p >= 2.
o print(x, max=m) is now consistent when x is a "Date"; also the
"reached ... max.print .." messages are now consistently using...