[R] Specifying strip.names in Lattice plots [UPDATE]
Duncan Mackay
dulcalma at bigpond.com
Wed Mar 5 21:39:46 CET 2014
Hi Rich
Without an example it is hard to work out.
trellis.par.get(c(...
is not correct, see
names(trellis.par.get())
try
strip = strip.custom(factor.levels = c(string vector of names for each
panel), par.strip.text = list(cex = 0.8) ),
Duncan
Duncan Mackay
Department of Agronomy and Soil Science
University of New England
Armidale NSW 2351
Email: home: mackay at northnet.com.au
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Rich Shepard
Sent: Thursday, 6 March 2014 03:29
To: r-help at r-project.org
Subject: Re: [R] Specifying strip.names in Lattice plots [UPDATE]
On Tue, 4 Mar 2014, Rich Shepard wrote:
> What I want to learn how to do is either 1) put the ylab in the strip or
> 2) eliminate the strip as redundant.
The latest iteration, and the accompanying warning message:
xyplot(cbind(dalles.disch.ts, dalles.temp.ts), main = "Columbia River @ The
Dalles", xlab = "Date (Year.Month)", ylab = c("Temperature (C)","Discharge
(cfs)"), strip = FALSE, strip.left = strip.custom(par.strip.text =
trellis.par.get(c("Mean Temperature","Mean Discharge"))))
Warning message: In if (name %in% names(lattice.theme[[.Device]]))
lattice.theme[[.Device]][[name]] else NULL :
the condition has length > 1 and only the first element will be used
Please correct the syntax in the xyplot() function so the two strips have
the desired text.
Thanks,
Rich
______________________________________________
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