[R] Scatter plot

2009-04-01 Thread Sueli Rodrigues
Hi. How do I plot the straight line and r² in a scatter plot using a simple file x~y? Sueli Rodrigues Eng. Agrônoma - UNESP Mestranda - USP/ESALQ PPG-Solos e Nutrição de Plantas Fones (19)93442981 (19)33719762 __ R-help@r-project.org mailing

[R] Error.bars

2009-03-11 Thread Sueli Rodrigues
rro: unexpected symbol in "error.bars=function(yv,z,nn){xv=barplot(yv,ylim=c(0,(max(yv)+max(z))),names=nn,ylab=deparse(substitute(yv)))g" Sueli Rodrigues Eng. Agrônoma - UNESP Mestranda - USP/ESALQ PPG-Solos e Nutrição de Plantas Fones (19)93

[R] error.bars

2009-03-11 Thread Sueli Rodrigues
Hi, I'm trying to use the function "error.bars", but the program don't find it, and I dont't found any package with this function. Is there some another functin to draw barplots with error bars? Sueli Rodrigues Eng. Agrônoma - UNESP Mestranda - USP/ESALQ PPG-Solos e

[R] Linear Regression

2009-03-06 Thread Sueli Rodrigues
0.824 10.052 4 0.790 9.859 . . . . . . . . . 80 0.499 9.819 Sueli Rodrigues Eng. Agrônoma - UNESP Mestranda - USP/ESALQ PPG-Solos e Nutrição de Plantas Fones (19)93442981 (19)33719762 __ R-help@r-project.org ma

[R] Doubt Linear Regression

2009-03-05 Thread Sueli Rodrigues
Hello. I have a file with 480 lines but each 6 lines corresponding just one sample. How can can work out the linear regression to each 6 lines? I use the model: model=lm(y~x) Sueli Rodrigues Agronomy Eng. - UNESP Master Degree - USP/ESALQ PPG-Soils and Plants Nutrition Phones(19)93442981

[R] Regressão linear

2009-03-04 Thread Sueli Rodrigues
Olá. Tenho um arquivo que a cada 6 linhas corresponde uma amostra da qual preciso dos coeficientes da regressão linear. Como faço para que o programa distinga a cada 6 linhas como uma amostra e não calcule como um todo? Estou usando a função: model=lm(y ~ x) Sueli Rodrigues Eng. Agrônoma