Re: [R] help with heatmap - how to remove annoying X before numeric values?

2007-07-19 Thread Suzanne Matthews
Sorry, I just realized I didn't send this to the list! (See below) Thanks for all the help! All is working fine now. If anyone knows of a more straightforward way to change the Value string for the Key, please let me know (just to satisfy my curiosity). I got it to work by modifying the source

Re: [R] help with heatmap - how to remove annoying X before numeric values?

2007-07-19 Thread Gabor Grothendieck
Try this. It makes a copy of heatmap.2 whose scope is changed to first look within heatmap.3 for functions like mtext. We redefine mtext to intercept the text argument and change it appropriately. Then we call our copy of heatmap.2. With this there is no need to change the source of heatmap.2.

[R] help with heatmap - how to remove annoying X before numeric values?

2007-07-18 Thread Suzanne Matthews
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 1905191019501992

Re: [R] help with heatmap - how to remove annoying X before numeric values?

2007-07-18 Thread Gabor Grothendieck
read.table is doing that, not heatmap.2. Use read.table(temp.txt, header = TRUE, check.names = FALSE) On 7/18/07, Suzanne Matthews [EMAIL PROTECTED] wrote: Hello All, I have a simple question based on how things are labeled on my heat map; particularly, there is this annoying X that

Re: [R] help with heatmap - how to remove annoying X before numeric values?

2007-07-18 Thread Moshe Olshansky
Hi Suzanne, My solution (which I am sure is not the best) would be: heat - read.table('temp.txt') heat X1905 X1910 X1950 X1992 X2011 X2020 Gnat 0.08 0.29 0.29 0.37 0.39 0.43 Snake 0.16 0.34 0.32 0.40 0.41 0.53 Bat0.40 0.54 0.52 0.60 0.60 0.63 Cat0.16 0.27 0.29

Re: [R] help with heatmap - how to remove annoying X before numeric values?

2007-07-18 Thread Prof Brian Ripley
read.table('temp.txt', check.names = FALSE) would be easier (and more general, since make.names can do more than prepend an 'X'). On Wed, 18 Jul 2007, Moshe Olshansky wrote: Hi Suzanne, My solution (which I am sure is not the best) would be: heat - read.table('temp.txt') heat

Re: [R] help with heatmap - how to remove annoying X before numeric values?

2007-07-18 Thread Moshe Olshansky
I was right saying that my solution was not the best possible! --- Prof Brian Ripley [EMAIL PROTECTED] wrote: read.table('temp.txt', check.names = FALSE) would be easier (and more general, since make.names can do more than prepend an 'X'). On Wed, 18 Jul 2007, Moshe Olshansky wrote: