[Rd] Legend to a heatmap

2006-02-14 Thread Vasundhara Akkineni
List, I want to add a color legend to a heatmap , similar to the one in levelplot and filled.contour plot. The legend should contain the colors used in the heatmap along with values for each color range. Can this be done? Please help. Thanks, Akkineni. [[alternative HTML version deleted]

[Rd] read.table without sep

2005-11-25 Thread Vasundhara Akkineni
Hello all, I have a data file table.txt which i have attached. I am trying to pass the columns as arguments to a function "totnorm" where i am displaying a total normalization plot. The function is given below: totnorm<-function(x,y){scale<-sum(x)/sum(y);xlab<-colnames(x);ylab<-colnames(y);x1<-x

[Rd] Image display in R

2005-11-18 Thread Vasundhara Akkineni
Hi all, I am trying to display a matrix of plots(images), for example a 3*3 matrix of 9 image plots, such that when a user clicks on a image i can show the enlarged plot. I tried the multiple graphic device(using mfcol=c(3,3) and mfg), but it creates multiple plots in a single image file. So, i wo

[Rd] Scan data from a .txt file

2005-11-17 Thread Vasundhara Akkineni
Hi all, Am trying to read data from a .txt file in such a way that i can access the column names too. For example, the data in the table.txt file is as below: Name Weight Height Gender Anne 150 65 F Rob 160 68 M George 180 65 M Greg 205 69 M i used the following commands: data<-scan("table.txt",

[Rd] Display a plot in an applet.

2005-10-17 Thread Vasundhara Akkineni
Hello, I am trying to display a plot produced in R as part of an Applet. Stating more clearly, i want to display a scatter plot(X axis data:1,2,4,5 and Y-axis data:4,6,5, 7)produced in R as an Applet. How can this be done? Please let me know. Thanks, Vasu. [[alternative HTML version dele

[Rd] R and Java

2005-10-04 Thread Vasundhara Akkineni
I am a grad student and am working on a project where i need to integrate java and R. I have a front end in java and i need to call R functions and be able to dispaly the plots and graphs produced by R on my java front end. I came across some tools like SJava and rserve...but am not sure which best