s-news
[Top] [All Lists]

[S] Summary: include zero on relation="free" axes

To: s-news@wubios.wustl.edu
Subject: [S] Summary: include zero on relation="free" axes
From: Lutz Prechelt <prechelt@ira.uka.de>
Date: Mon, 20 Dec 1999 10:10:04 +0100
Sender: owner-s-news@wubios.wustl.edu

Hi all,

on Saturday I had asked the following question:

> If I'm doing a Trellis plot with
>   scales=list(relation="free")
> is there any reasonable way to force Trellis to include
> zero in each axis?

Thanks to Frank Harell, Bill Venables, and Nick Ellis
for their answers.
They pointed out that the solution was using a prepanel function,
roughly like this:

prepanel.0 <- function(x,y) {
  # forces that zero is included on the axes
  list(xlim=range(x,0), ylim=range(y,0))
}

xyplot(y ~ x | type, data=df, prepanel=prepanel.0)

unfortunately, it appears that this works fine only as long
as I'm _NOT_ using scales=list(relation="free") !
Then the prepanel.0 results apparently will be ignored by trellis.

Or am I getting something else wrong now?

  Lutz

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>
  • [S] Summary: include zero on relation="free" axes, Lutz Prechelt <=