Displaying 3 results from an estimated 3 matches for "normal2".
Did you mean:
normal
2008 Jun 08
1
label points on a graph
...the plot:
dat<-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(dat[1:20,1:2],type='p',xlab='normal1',ylab='normal2',main='Two normal samples--first 20 genes',pch=15,col='blue')
grid(nx=5,ny=5,col="black",lty="dotted",lwd=2)
Do I use the label function text(x,y,names)? If so do I specify to put 1-20 above the points as text(5,5,1:20,pos=3)?
Any help would be much appreciat...
2008 Jun 07
1
error message with dat
...ow.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 t...
2008 Jun 06
6
Subsetting to unique values
I want to take the first row of each unique ID value from a data frame.
For instance
> ddTable <-
data.frame(Id=c(1,1,2,2),name=c("Paul","Joe","Bob","Larry"))
I want a dataset that is
Id Name
1 Paul
2 Bob
> unique(ddTable)
Will give me all 4 rows, and
> unique(ddTable$Id)
Will give me c(1,2), but not accompanied by the name column.