Like this?

x <- c(-2.5, -1.3, 0.6, 0.8, 2.1)
y <- c(0.3, 1.9, 1.4, 0.7, 1.1)

plot(x, y, ylim=c(0, 2), axes=FALSE, asp=1.25)
box()
abline(h=0)
axis(side=1, pos=0.0, lwd=0, lwd.ticks=1)
axis(side=2, lwd=0, lwd.ticks=1)

B.

On May 31, 2015, at 7:49 PM, andrejfa...@ml1.net wrote:

> x <- c(-2.5, -1.3, 0.6, 0.8, 2.1)
> y <- c(0.3, 1.9, 1.4, 0.7, 1.1)
> 
> plot(x, y, ylim=c(0, 2), yaxs="i", asp=1.25)

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to