[R] binning data from NMR

2011-01-31 Thread Marcelo Lima
Hey there, I have a matrix which is from NMR data (first column represents the ppm values and the subsequent their respective intensities for my various samples) that I would like to bin. Make every 10 points ( on my x axis) become one by averaging them out. Any suggestions? Thanks! -- Marcelo A

[R] matlab code into R

2010-11-04 Thread Marcelo Lima
Hello, I'm trying to write the following matlab code into R: N = zeros(n-1); for i=2:(n-1) N(1,i) = 1/(pi * (i-1)); end for i=2:(n-2) for j=i:(n-1) N(i,j) = N(i-1,j-1); end; end for i=2:(n-1) end for j=1:i N(i,j) = -N(j,i); end; any suggestions? Thanks can i just add the following l

[R] covariance matrix

2010-10-24 Thread Marcelo Lima
Hi all, I generated a covariance matrix and visualized as a 2D contour plot (x,y, covariance matrix), I would like to extract from the matrix the values ( in x and y) that auto-correlate which I will plot as an normal (x,y(being the values that auto-corelate to a certain x and y values in my origi

[R] covariance matrix

2010-10-22 Thread Marcelo Lima
Dear all, I generated a covariance matrix and I would like to generate a 1D plot of the data that auto-correlate. any suggestions? Thanks, Marcelo -- Marcelo Andrade de Lima UNIFESP - Universidade Federal de São Paulo Departamento de Bioquímica Disciplina de Biologia Molecular Rua Três de Maio

[R] add diagonal line to covariance matrix

2010-10-22 Thread Marcelo Lima
Hi, Created a covariance matrix and i would like to add a diagonal line to the plot, any suggestions? Thanks -- Marcelo Andrade de Lima UNIFESP - Universidade Federal de São Paulo Departamento de Bioquímica Disciplina de Biologia Molecular Rua Três de Maio 100, 4 andar - Vila Clementino, 04044-