[R] abline does not show on plot if slope differs from 0

Gábor Pozsgai pozsgaig at gmail.com
Sun Aug 30 18:25:41 CEST 2009


Hi,

Does anybody have a hint why this does not work?

plot(c(1991,2000), c(-1,10))abline(a=6, b=-1, col="dark grey", lty="dashed")

It does not generate an error message, but the line does not turn up.

If b=0 it works fine. If I change the axes of the plot to
plot(c(1,10), c(-1,10)) it does work fine as well.

Thanks,
Gabor

-- 
Pozsgai Gábor
www.coleoptera.hu
www.photogabor.com




More information about the R-help mailing list