[R] Error in as.double.default(x) : (list) object cannot be coerced to 'double'

2007-08-07 Thread Urmi Trivedi
ues, similarly,ANTEXP.TXT is Y1, apetella.txt is X2 and apetellaexp.txt is Y2 I tried reading R-manual and other sources but have'nt cracked it yet. Can anyone please help me regarding that? Thanks very much Yours sincerely, Urmi Trivedi. -

[R] plotting series of matrices on a single plot.

2007-08-07 Thread Urmi Trivedi
ues, similarly,ANTEXP.TXT is Y1, apetella.txt is X2 and apetellaexp.txt is Y2 I tried reading R-manual and other sources but have'nt cracked it yet. Can anyone please help me regarding that? Thanks very much Yours sincerely, Urmi Trivedi. --

[R] Reading Matrices

2007-08-01 Thread Urmi Trivedi
Dear all, I have been successful so far in plotting matrices and getting the regression line. But, as the matrices contains values like 1 and 0 (diagonal line) which is actually not needed as they are for the same gene, is creating bias in my regression line. I wish to neglect that part of the

[R] Best-fit linear model for the two matrices plotted.

2007-07-25 Thread Urmi Trivedi
Hi all.. I am so far successful in plotting the matrices containing r-values and evol.distances using R. But I am facing a problem to fit a line to it. I tried using "lm" function but no success..!! Can you please help me for that? I am giving the functions, I tried, to get a plot here:

[R] Fitting the best line to the plot of distance vs. correlation matrix

2007-07-24 Thread Urmi Trivedi
Hi all, Thanks for your help in generating the matrix of distance vs correlation. I did it using plot(as.vector(as.matrix(cormat)), as.vector(as.matrix(distmat))) Now I want to quantitate the same. May be on linear regression or some other statistical functions. I have tried using linmod fo

[R] Comparing a distance vs. correlation matrices

2007-07-24 Thread Urmi Trivedi
Hi all, I am a student of MRes Bioinformatics and Comp. Biology at University of Leeds, UK. I am trying to compare two matrices in R. One is the matrix containing distance and the other one contains the correlation values. I would like to create a XY plot of these matrices and do some linear