Re: [R] heatmap and phylogram / dendogram ploting problem, ape package

2007-05-07 Thread jamesrh
Emmanuel Paradis, the maintainer of the ape package was very helpful in solving this problem. It seems that it heatmap does not reorder the rows, so you must reorder them or change the heatmap code to do so. The heatmap maintainers will document this, but not change the behavior. The following

Re: [R] heatmap color specification

2007-02-12 Thread Xiaohui
Jim Lemon wrote: Xiaohui wrote: ... Then, I did a heatmap for 'test' matrix. But for now, I want to specify each of the cell in the heatmap according to the values of the corresponding matrix elements of test. Let's say: col-c(red,yellow,green) for test[1,1], the color on the map should

Re: [R] heatmap color specification

2007-02-10 Thread Jim Lemon
Xiaohui wrote: ... Then, I did a heatmap for 'test' matrix. But for now, I want to specify each of the cell in the heatmap according to the values of the corresponding matrix elements of test. Let's say: col-c(red,yellow,green) for test[1,1], the color on the map should be red. I

Re: [R] heatmap from xyz data

2007-02-06 Thread Vladimir Eremeev
You can use plot(y~x,col=color.index.in.palette.defined.from(z),pch=20,type=p) where color.index.in.palette.defined.from(z) is a function or an expression, returning either a color index in a predefined palette or any other color representation, suitable for R. This is described in ?par. I

Re: [R] heatmap with levelplot?

2006-12-22 Thread Deepayan Sarkar
On 12/22/06, Yuli Zhou [EMAIL PROTECTED] wrote: Hi, How do I anchor z=0 to the white color in a levelplot so that the color changes from cyan to magenta precisely as z changes from negative to positive? The changepoints are defined by 'at', and the colors are chosen more or less linearly, so

Re: [R] heatmap.2 in gplots package

2006-02-22 Thread Warnes, Gregory R
Hello Akkineni, This bug has already been reported and we have a tentative solution that we are testing. I'll send you a copy of the modified code once we finish testing. -G -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Akkineni,Vasundhara Sent:

Re: [R] heatmap.2 in gplots package

2006-02-22 Thread Sean Davis
On 2/22/06 12:09 PM, Akkineni,Vasundhara [EMAIL PROTECTED] wrote: 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,

Re: [R] heatmap.2 in gplots package

2006-02-22 Thread Akkineni,Vasundhara
Subject: Re: [R] heatmap.2 in gplots package On 2/22/06 12:09 PM, Akkineni,Vasundhara [EMAIL PROTECTED] wrote: 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

Re: [R] heatmap.2 in gplots package

2006-02-22 Thread Sean Davis
On 2/22/06 3:15 PM, Akkineni,Vasundhara [EMAIL PROTECTED] wrote: I used Colv=1:ncol(z), and i got the display the way i need it. Thanks. One more question, is there a way to increase the size of the color key in heatmap.2 so that all the tick values(for Eg.,in my case, values range

Re: [R] heatmap aspect ratio

2005-12-07 Thread Gregoire Thomas
You can change the code of layout: layout(lmat, widths = lwid, heights = lhei, respect = TRUE) layout(lmat, widths = lwid, heights = lhei, respect = FALSE) (best to create a new function my.layout with the modified code) Jacob Michaelson wrote: Hi all, Does anyone know of a fairly easy way

Re: [R] heatmap

2005-10-04 Thread Jim Lemon
Andrea Zangrando wrote: Hi, i created a graph with heatmap(sma) function: heatmap(dataHeat(x)) and I wish to change the gradation of colors from blue to red, how could i do? Using heatmap(dataHeat(x), col=c(2,4)) i will use only 2 colors without gradation. The color.gradient

Re: [R] heatmap

2005-10-04 Thread Roger Bivand
On Tue, 4 Oct 2005, Jim Lemon wrote: Andrea Zangrando wrote: Hi, i created a graph with heatmap(sma) function: heatmap(dataHeat(x)) and I wish to change the gradation of colors from blue to red, how could i do? Using heatmap(dataHeat(x), col=c(2,4)) i will use only 2

Re: [R] heatmap ordered list

2005-10-04 Thread Martin Maechler
Andrea == Andrea Zangrando [EMAIL PROTECTED] on Tue, 04 Oct 2005 15:00:27 +0200 writes: Andrea Hi, Andrea another problem on heatmaps... after generating the graph with Andrea myBlRd - colorRampPalette(c(blue, red)) Andrea heatmap(dataHeat[Top100, ], col=myBlRd(15))

Re: [R] heatmap

2005-10-03 Thread Romain Francois
Le 03.10.2005 14:24, Andrea Zangrando a écrit : Hi, i created a graph with heatmap(sma) function: heatmap(dataHeat(x)) and I wish to change the gradation of colors from blue to red, how could i do? Using heatmap(dataHeat(x), col=c(2,4)) i will use only 2 colors without gradation. Ty so much

Re: [R] heatmap

2005-10-03 Thread vincent
Andrea Zangrando a écrit : ... and I wish to change the gradation of colors from blue to red, how could i do? Hello, here's how I build such a palette. a = 15; palwhiteblue = rgb(a:0, a:0, a, max=a); palredwhite = rgb(a, 0:a, 0:a, max=a); palwhite = rep(rgb(1,1,1), 8); palRWB =

Re: [R] heatmap

2005-10-03 Thread Roger Bivand
On Mon, 3 Oct 2005, Romain Francois wrote: Le 03.10.2005 14:24, Andrea Zangrando a écrit : Hi, i created a graph with heatmap(sma) function: heatmap(dataHeat(x)) and I wish to change the gradation of colors from blue to red, how could i do? Using heatmap(dataHeat(x), col=c(2,4)) i

Re: [R] heatmap question

2005-09-12 Thread Adaikalavan Ramasamy
Does any other plotting function work as they should e.g. plot(1:10) or are you connecting remotely to a server ? Regards, Adai On Mon, 2005-09-12 at 10:51 -0400, Peter Scacheri wrote: I'm having trouble with the heatmap function in R. When I try and heatmap something, my graphics window

Re: [R] heatmap question

2005-09-12 Thread vincent
Peter Scacheri a écrit : 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

Re: [R] heatmap question

2005-09-12 Thread Peter Scacheri
Hmmm...Seems to work OK now. Thanks for your help. Peter At 11:30 AM -0400 9/12/05, [EMAIL PROTECTED] wrote: Peter Scacheri a écrit : 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

Re: [R] heatmap -- invisible list?

2005-08-08 Thread Sean Davis
On 8/8/05 9:45 AM, Jacob Michaelson [EMAIL PROTECTED] wrote: Hi all, In heatmap's documentation, it mentions that the output value is actually an invisible list...how would one access this list? Mylist - heatmap() __ R-help@stat.math.ethz.ch

Re: [R] heatmap color distribution

2005-07-21 Thread Wiener, Matthew
You can use the breaks argument in image to do this. (You don't specify a function you're using, but other heatmap functions probably have a similar parameter.) Look across all your data, figure out the ranges you want to have different colors, and specify the appropriate break points in each

Re: [R] heatmap color distribution

2005-07-21 Thread Jake Michaelson
Thanks for the reply. As I understand it, breaks only controls the binning. The problem I'm having is that each subset heatmap has slightly different min and max log2 intensities. I'd like the colors to be based on the overall (complete set) max and min, not the subsets' max and min --

Re: [R] heatmap color distribution

2005-07-21 Thread Wiener, Matthew
mean? HTH, Matt -Original Message- From: Jake Michaelson [mailto:[EMAIL PROTECTED] Sent: Thursday, July 21, 2005 10:45 AM To: Wiener, Matthew Cc: R-help@stat.math.ethz.ch Subject: Re: [R] heatmap color distribution Thanks for the reply. As I understand it, breaks only controls

Re: [R] heatmap color distribution

2005-07-21 Thread Ruben Roa
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jacob Michaelson Sent: 21 July 2005 12:26 To: r-help@stat.math.ethz.ch Subject: [R] heatmap color distribution Hi all, I've got a set of gene expression data, and I'm plotting several heatmaps

Re: [R] heatmap not symmetric ?

2005-06-23 Thread Liaw, Andy
From: Charles Plessy Dear list, I hope it is not a FAQ, but I searched the archives and Google, and found nothing. The question is simple : I do not understand why, starting from a symmetrical correlation matrix, heatmap produces an asymmetrical image. Umm... because you haven't

Re: [R] heatmap aspect ratio

2005-06-16 Thread Sean Davis
On Jun 16, 2005, at 9:47 AM, Jacob Michaelson wrote: 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).

Re: [R] heatmap help

2004-09-08 Thread Marta Rufino
Hello, I was just doing heatmaps myself ;-) and I had the same problem. It would be nice to have such an example in the help file because it is not clear (thank you). you use (for example... this is my case, which I am doing the distance matrix using vegdist function with Bray curtis

RE: [R] heatmap help

2004-09-08 Thread Paul Lepp
:22 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [R] heatmap help Hello, I was just doing heatmaps myself ;-) and I had the same problem. It would be nice to have such an example in the help file because it is not clear (thank you). you use (for example... this is my

RE: [R] heatmap help

2004-09-07 Thread Liaw, Andy
I believe you want to pass the (symmetric) matrix as is, rather than wrapped in as.dist(). E.g., x - as.matrix(dist(matrix(rnorm(100), 20, 5))) heatmap(x, symm=TRUE, scale=none) HTH, Andy From: Paul Lepp Dear R wizards, Hopeful someone can help me with what I believe is a pretty

RE: [R] heatmap help

2004-09-07 Thread Liaw, Andy
Sorry. I think you need the argument distfun=as.dist. E.g., heatmap(x, distfun=as.dist, symm=TRUE, scale=none) Andy From: Liaw, Andy I believe you want to pass the (symmetric) matrix as is, rather than wrapped in as.dist(). E.g., x - as.matrix(dist(matrix(rnorm(100), 20, 5)))

Re: [R] heatmap for gene clustering?

2004-05-05 Thread Sean Davis
Look into ?cutree. Sean On 5/5/04 1:29 PM, Hyung Cho [EMAIL PROTECTED] wrote: 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

RE: [R] heatmap function

2003-10-17 Thread Martin Maechler
AndyL == Liaw, Andy [EMAIL PROTECTED] on Fri, 17 Oct 2003 09:10:16 -0400 writes: AndyL One of the good thing about R (and S in general, I AndyL guess) is that if a function does mostly what you AndyL want, except for some small things, you can just make AndyL another copy of

Re: [R] heatmap and hclust

2003-09-24 Thread Laurent Gautier
On Wed, Sep 24, 2003 at 02:47:21PM +0200, Martin Olivier wrote: 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.