[R] how to force a table to be square?

2010-07-22 Thread Liat
not appear in the data at all I would like to see a zero row or a zero column). Is that possible to do? What would be the simplest way? Many many thanks!!! Liat. -- View this message in context: http://r.789695.n4.nabble.com/how-to-force-a-table-to-be-square-tp2298707p2298707.html Sent from the R

Re: [R] how to force a table to be square?

2010-07-22 Thread Liat
Thank you!!! -- View this message in context: http://r.789695.n4.nabble.com/how-to-force-a-table-to-be-square-tp2298707p2298876.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

Re: [R] how to force a table to be square?

2010-07-22 Thread Liat
Thanks Peter! that worked, and was so easy. LOL. I tried playing with factor and levels before I wrote here, but obviously I didn't do it right. Thanks again, Liat. -- View this message in context: http://r.789695.n4.nabble.com/how-to-force-a-table-to-be-square-tp2298707p2298875.html Sent from

[R] heatmap/image from csv data

2009-12-10 Thread Liat
Hi all, I'm trying to use heat.map to display some data. The data is originally in csv format and when I read it in R using read.table I get: a b c d e 1 A 1 1 1 1 2 B 1 0 1 1 3 C 0 1 0 1 4 D 1 1 1 0 5 E 1 0 0 0 The problem is, that for heatmap I need a numerical matrix. When using data.matrix

Re: [R] heatmap/image from csv data

2009-12-10 Thread Liat
I have looked at the help for data.matrix. But didn't find a solution. data.matrix only gets two arguments the data and a logical rownames.force - I have tried to change this logical to TRUE but that doesn't help. Any advice would be greatly appreciated. Thanks!! Liat wrote: Hi all, I'm

[R] Bar charts with error bars

2008-06-24 Thread Liat RT
I would like to add error bars to a bar chart, I have created in R. I am able to add error bars to a bar plot, but the same method does not seem to work for my bar chart version.   Is there a way to add error bars to bar charts?