Re: [R] Problems getting symbols() to show table data

2010-04-16 Thread Guy Green
Thanks. I don't think I would ever have worked that twist out. It is perfect. Guy -- View this message in context: http://n4.nabble.com/Problems-getting-symbols-to-show-table-data-tp1839676p1989384.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Problems getting symbols() to show table data

2010-04-15 Thread Gabor Grothendieck
Try this: library(gplots) URL <- "http://n4.nabble.com/file/n1890724/test-data.txt"; DF <- read.table(URL) balloonplot(colnames(DF)[col(DF)], rownames(DF)[row(DF)], abs(as.matrix(DF)), dotcolor = c("lightblue", "red")[(c(matrix_data) < 0) + 1], show.margins = FALSE, cum.ma

Re: [R] Problems getting symbols() to show table data

2010-04-15 Thread Guy Green
Thanks, balloonplot() is great and gets me really close to what I am after. However it then brings me to a slightly different problem - I wonder if anyone can suggest where I am going wrong? Again with simplified data ( http://n4.nabble.com/file/n1890724/test-data.txt test-data.txt ):

Re: [R] Problems getting symbols() to show table data

2010-04-14 Thread Gabor Grothendieck
Try this: library(gplots) m <- matrix(c(1, 2, -3, -6, 5, 4), 3) tm <- t(m) balloonplot(row(tm), col(tm), abs(tm), dotcolor = c("blue", "red")[(c(tm) > 0) + 1], show.margins = FALSE, cum.margins = FALSE, xlab = "Cols", ylab = "Rows", main = "m") On Wed, Apr 14, 2010 at 7:58 AM, Guy Gree

[R] Problems getting symbols() to show table data

2010-04-14 Thread Guy Green
Hello, I am trying to create a graphic to help me visualise data. A (very simplified) sample of the data is http://n4.nabble.com/file/n1839676/circle_data.txt circle_data.txt : Aug-07 Nov-07 Feb-08 data1 1 1.5 -1 data2 1