[R] plot: abline() - define line length

Greg Snow Greg.Snow at imail.org
Thu Jan 22 15:54:31 CET 2009


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.snow at imail.org
801.408.8111


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Jörg Groß
> Sent: Wednesday, January 21, 2009 5:02 PM
> To: r-help at 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 at 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.




More information about the R-help mailing list