A.B.
2009-Sep-29 18:04 UTC
[R] how to draw a slope (using abline) with a specific starting point?
plot(y~x, type='p', col=3, xlim=c(50,1000), ylim=c(0,80), xlab='', ylab='', data=example) abline(a=11, b=0.04, col = 2) -- Thanks, A.B. [[alternative HTML version deleted]]
Petr PIKAL
2009-Sep-30 10:02 UTC
[R] Odp: how to draw a slope (using abline) with a specific starting point?
Hi it is not clear what you want? If you want a line which does not stretch entire plot use segments. AFAIK abline does not have any argument restricting its length. Regards Petr r-help-bounces at r-project.org napsal dne 29.09.2009 20:04:05:> plot(y~x, type='p', col=3, xlim=c(50,1000), ylim=c(0,80), xlab='',ylab='',> data=example) > abline(a=11, b=0.04, col = 2) > > -- > Thanks, > A.B. > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.