[R] Subplot.

2007-07-13 Thread suman Duvvuru
Hello All, I wanted to do many plots (in my case, wanted to get 6 histograms) on the same figure. Is there a method in R that analogous to 'subplot' in MATLAB? Any help will be very much appreciated. thanks, Suman [[alternative HTML version deleted]]

[R] Timer

2007-06-27 Thread suman Duvvuru
Hello, This might be a very basic question but I was not sure how to go about it. I just wanted to calcluate the time it takes to run my program. Basically I was to put a timer at the start and the end of the program in order to see how much time it takes to give the output (similar to tic-tac in

[R] Correlation ratio

2007-06-27 Thread suman Duvvuru
Hi, I wanted to know how to compute the correlation ratio (eta) between two variables using R. Is there any function to compute the correlation ratio. Any help will be very much appreciated. Thanks, Suman [[alternative HTML version deleted]]

Re: [R] Correlation ratio

2007-06-27 Thread suman Duvvuru
Hi Bruce, correlation ratio (eta) is different from correlation coefficient (rho). While correlation coefficient captures only a linear relationship btw variables, correlation ratio captures both linear and non-linear relationships. It is the defined as the ratio of the variance between arrays to

[R] Creating different matrices in a loop

2007-06-23 Thread suman Duvvuru
Hello, I have a big matrix of size (20,5) -bmat . I have to loop though the rows in the matrix and create DIFFERENT matrices each time I go through the loop. counts=c(4,6,10); p=1; for (i in 1:length(counts)) { smat=bmat[p:p+i-1,]; p=p+i; } The problem is smat overwrites itself each

[R] Histogram using frequency data

2007-06-18 Thread suman Duvvuru
Hello, I wanted to know how to plot a histogram using a vector of frequencies rather than the data vector as a whole. So I have two vectors: a vector of labels V1= c(A,B,C,D) and vector B which is a vector of frequencies of A, B, C and D respectively V2=c(20,50,60,30). I wanted to plot a