Re: [R] Converting a data frame to matrix

2008-03-28 Thread Jim Lemon
Adrian Johnson wrote: Hello: I have a tab delim file with 100 rows and 100 columns. I have numerical values in this table. What I want is to create an image color map with color gradation. my values range from -5 to 0. max value is 0. to acheive this, I need to convert my data.frame

Re: [R] Converting a data frame to matrix

2008-03-28 Thread Petr PIKAL
Hi [EMAIL PROTECTED] napsal dne 28.03.2008 10:18:20: Adrian Johnson wrote: Hello: I have a tab delim file with 100 rows and 100 columns. I have numerical values in this table. What I want is to create an image Probably not. See below. color map with color gradation. my

Re: [R] Converting a data frame to matrix

2008-03-28 Thread hadley wickham
Is there any other way I can do this. say row names are city schools colnames are student names Hi Adrian, Have you looked at color2d.matplot in the plotrix package? Jim You might also want to check out the seriation package, which provides tools to reorder your matrix to

[R] Converting a data frame to matrix

2008-03-27 Thread Adrian Johnson
Hello: I have a tab delim file with 100 rows and 100 columns. I have numerical values in this table. What I want is to create an image color map with color gradation. my values range from -5 to 0. max value is 0. to acheive this, I need to convert my data.frame into matrix. I tried following

Re: [R] Converting a data frame to matrix

2008-03-27 Thread jim holtman
Do an 'str' on your data so that we see what it contains. It may appear to be numbers, but they might also be factors as a result of the read.table. On Thu, Mar 27, 2008 at 7:43 PM, Adrian Johnson [EMAIL PROTECTED] wrote: Hello: I have a tab delim file with 100 rows and 100 columns. I have