[R] Two Dimensional Transformation

2010-07-16 Thread Ravi Ramaswamy
Hi - I am trying to map a two dimensional area A to another two dimensional area B using a function. For instance A = {(x,y), 0https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained,

[R] Gasoline Data in pls package

2010-05-11 Thread Ravi Ramaswamy
Hi - I am using pls package for some pcr computations. There is a data set called gasoline. Would someone be able to tell me what command(s) could be used to produce this graph in R? I am not sure where the log(1/R) - Y-axis - are coming from Thanks much Ravi __

Re: [R] Help with Names

2010-05-10 Thread Ravi Ramaswamy
' so we can see what the structure is. I > don't know what the 'pcr' program is expecting, but it looks like from what > you have provided that 'yarn' might be a dataframe and "X" is a vector. > Look at the documentation for pcr and see what it e

Re: [R] Help with Names

2010-05-10 Thread Ravi Ramaswamy
.12" "X.13" "X.14" "X.15" "X.16" "X.17" "X.18" On Mon, May 10, 2010 at 9:05 PM, jim holtman wrote: > Is this what you want: > > > x <- paste("X", 1:10, sep='') > > > x > [1] &quo

[R] Help with Names

2010-05-10 Thread Ravi Ramaswamy
Hi - a newbie question, if someone can please help I want to change X1, X2,,.to X.1 X.2 etc in the names below. I am using the Principal Component Regression function (pcr) and it seems to want it this way > datap3.pcr <- pcr(water ~ X, 10, data = datap3, Validation ="cv") Error in mode

[R] Plotting Help

2010-05-08 Thread Ravi Ramaswamy
Hi - Wondering if someone could help me with a plotting problem. I looked through the postings for this error message but the explanations are hard to follow. Basically I have matrix of 80 rows and 101 columns. I would like to generated a line graph that has 80 plots, one for each row, with the

[R] R-Help

2010-02-06 Thread Ravi Ramaswamy
Hi - I am not familiar with R. Could I ask you a quick question? When I read a file like this, I get an error. Not sure what I am doing wrong. I use a MAC. How do I specify a full path name for a file in R? Or do files have to reside locally? > KoreaAuto <- read.table(""/Users/ raviramaswamy