[19183] in s-news-athena
[S] scales in trellis.args
daemon@ATHENA.MIT.EDU (George Watters)
Fri Sep 10 17:15:16 1999
Message-Id: <20A8EA423F09D3119DCE006008121ED9017349@SERVER3>
From: George Watters <GWatters@iattc.ucsd.edu>
To: "'S-news'" <s-news@wubios.wustl.edu>
Date: Fri, 10 Sep 1999 14:07:15 -0700
Mime-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Hello everyone,
I have a question about the scales argument in trellis. I'm trying to make
a plot with nine panels (3 rows x 3 cols), but I'm skipping the panels in
the corners so that only the panels in row 2 and column 2 are plotted (to
make a "cross"). My problem is that I cannot find a way to use the scales
argument to plot plot the x-axis on the arms (panels in row 2, cols 1 and 3)
of the cross and the y-axis on the post of the cross (panels in col 2, rows
1 and 3). I have tried various ways (logicals and vectors of 1s or 2s) of
passing the "alternating=" argument to scales, but I have not been
sucessful. My current version fo the function I'm using to make this plot
is given below:
function(data)
{
superpose.line <- trellis.par.get("superpose.line")
superpose.line$col <- c(2:length(unique(data$Group)), 1)
superpose.line$lty <- rep(1, length(superpose.line$col))
superpose.line$lwd <- rep(1.5, length(superpose.line$col))
trellis.par.set("superpose.line", superpose.line)
outplot <- xyplot(Biomass ~ Time | Cell, data = data, type = "l",
groups = Group, panel = panel.superpose, layout = c(3, 3,
1), skip = c(T, F, T, F, F, F, T, F, T), as.table = T,
scales = list(x = list(alternating = F), y = list(
alternating = F)), xlab = "Years Since Start", ylab =
"Relative Biomass", strip = george.strip)
print(outplot)
key(lines = superpose.line, text = list(levels(data$Group)), x = 0,
y = 0.975, text.width.multiplier = 0.8)
}
Before I forget, I use Windows NT 4.0 and
> version
Professional Edition Version 4.5 Release 2 for Microsoft Windows : 1998
Thanks in advance for any advice you might offer -- I'll summarize for the
group when I learn something.
George
George Watters
Inter-American Tropical Tuna Commission
8604 La Jolla Shores Drive
La Jolla, CA 92037-1508
USA
voice: (858) 546-7022
fax: (858) 546-7133
-----------------------------------------------------------------------
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