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

2009-01-22 Thread Greg Snow
age- > 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, th

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

2009-01-21 Thread Jörg Groß
Thanks, that's great! Am 22.01.2009 um 01:18 schrieb Remko Duursma: I use this function (a lot): ablinepiece <- function(a=NULL,b=NULL,reg=NULL,from,to,...){ # Borrowed from abline if (!is.null(reg)) a <- reg if (!is.null(a) && is.list(a)) { temp <- as.vector(coeffici

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

2009-01-21 Thread Remko Duursma
I use this function (a lot): ablinepiece <- function(a=NULL,b=NULL,reg=NULL,from,to,...){ # Borrowed from abline if (!is.null(reg)) a <- reg if (!is.null(a) && is.list(a)) { temp <- as.vector(coefficients(a)) if (length(temp) == 1) { a <- 0

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

2009-01-21 Thread Jörg Groß
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/mailma