Re: [R] Plot with a vertical line at zero on x axis

2009-06-23 Thread legen
I got it. Thank you very mcuh. Legen jholtman wrote: > > You need to specify the xlim: > > y<-c(0.037790309,0.020307312,0.021109653,0.050216689, > 0.026979484,0.027619193,0.024070163,0.021996969, > 0.007831769,0.020065109,0.005903177,0.008182403) > d<-data.frame(cbind(y,seq(1:12))) >

Re: [R] Plot with a vertical line at zero on x axis

2009-06-23 Thread jim holtman
You need to specify the xlim: y<-c(0.037790309,0.020307312,0.021109653,0.050216689, 0.026979484,0.027619193,0.024070163,0.021996969, 0.007831769,0.020065109,0.005903177,0.008182403) d<-data.frame(cbind(y,seq(1:12))) colnames(d)<-c("y","x") #--attach(d) plot(d$y,d$x,xlab="",ylab="",axes=F,

[R] Plot with a vertical line at zero on x axis

2009-06-23 Thread legen
Hallo, All, I cannot add one straight vertical line at 0.0 on x axis using the following data and R code: y<-c(0.037790309,0.020307312,0.021109653,0.050216689, 0.026979484,0.027619193,0.024070163,0.021996969, 0.007831769,0.020065109,0.005903177,0.008182403) d<-data.frame(cbind(y,seq(1