[R] Plot with a vertical line at zero on x axis
legen
legendy at gmail.com
Tue Jun 23 23:26:51 CEST 2009
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:12)))
colnames(d)<-c("y","x")
attach(d)
plot(y,x,xlab="",ylab="",axes=F)
abline(v=c(0.0),lty=2)
axis(1)
axis(3)
Any help with be greatly appreciated!
Legen
--
View this message in context: http://www.nabble.com/Plot-with-a-vertical-line-at-zero-on-x-axis-tp24174761p24174761.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list