On Tue, Jul 28, 2009 at 6:58 AM, Peter Ehlers<ehl...@ucalgary.ca> wrote:
> David,
> ?panel.abline does not indicate that 'from/to' are arguments to
> that function. If you read the help page carefully, you'll see
> that 'from/to' apply to panel.curve(). Perhaps you thought that
> the '...' argument can take 'from/to'; again the help page makes
> it clear that those are to be *graphical* parameters.
>
> One quick fix would be to use panel.curve with, e.g. expr set to
> a + b*x:
> panel.curve(2 + .5*x, ...)

Yes, that would be my suggestion too, or using panel.segments

  fab <- function(x) a + b * x
  panel.segments(from, fab(from), to, fab(to))

-Deepayan

______________________________________________
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