Use either the 'clip' function from the graphics package, or the 'clipplot' 
function from the TeachingDemos package.

Hope this helps,

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111


> -----Original Message-----
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of Jörg Groß
> Sent: Wednesday, January 21, 2009 5:02 PM
> To: r-help@r-project.org
> Subject: [R] plot: abline() - define line length
> 
> Hi,
> 
> is there a way to define, that a line drawn via abline() should only
> go from for example -2 to 1 on the x-axis (with something working
> similiar to xlim()) ?
> 
> thanks for any help!
> 
> ______________________________________________
> R-help@r-project.org mailing list
> 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.

______________________________________________
R-help@r-project.org mailing list
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