[R] Specifying strip.names in Lattice plots [UPDATE]

Rich Shepard rshepard at appl-ecosys.com
Wed Mar 5 18:28:51 CET 2014


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




More information about the R-help mailing list