Hello everyone, I have two problems which I am unable to solve : 1.I am trying to add the row labels (g1-g2000) to the very left of a data table. The data table is 2000 rows by 62 columns.I have used the following code. read.table(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt",header=T,row.names=1) rowname(dat) <- paste("g", c(1:nrow(dat)), sep="") file.show(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt") The error message I get is "error in nrow(dat):object "dat" not found 2.I am also trying to populate a scatter plot with data from two columns which are 2000 values long.I have tried the following code: read.table(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1.txt",header=T,row.names=1) file.show(file="C:\\Documents and Settings\\Owner\\My Documents\\colon cancer1..txt") plot(50,1500,type='p',xlab='normal',ylab='tumor',main='Tumor sample vs.Normal Sample-2000genes') plot(50,1500,type='p',xlab='normal1',ylab='normal2',main='Two normal samples--first 20 genes',pch=15,col='blue') plot(dat(,1), dat(,2)) I get the following error message "error in plot (dat(,1),dat(,2) could not find function dat I am not sure how I am suppossed to use function dat that is where and how to define it to the table? Any help would be appreciated. Paul
[[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://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, reproducible code.