[R] Lattice: useOuterStrips and axes

From: Jim Price <price_ja_at_hotmail.com>
Date: Tue, 01 Mar 2011 10:29:57 -0800 (PST)


Consider the following:

library(lattice)
library(latticeExtra)

temp <- expand.grid(

		    subject = factor(paste('Subject', 1:3)),
		    var = factor(paste('Variable', 1:3)),
		    time = 1:10
		    )

temp$resp <- rnorm(nrow(temp), 10 * as.numeric(temp$var), 1)

ylimits <- by(temp$resp, temp$var, function(x) range(pretty(x)))

useOuterStrips(xyplot(

		      resp ~ time | subject * var,
		      data = temp,
		      as.table = TRUE,
		      scales = list(
				    alternating = 1, tck = c(1, 0),
				    y = list(relation = 'free', rot = 0, limits = rep(ylimits, each =
3))
				    )
		      ))


This is a matrix of variables on subjects, where it makes sense to have panel-specific y-axes because of the differing variable ranges. In fact, it makes sense to have row-specific y-axes, because of the similarity of intra-variable inter-subject response. However the graphic as presented gives per-panel y-axis annotation - I'd like to drop the 2nd and 3rd columns of y-axes labels, so the panels become a contiguous array.

Is this possible?

Thanks,
Jim Price.
Cardiome Pharma. Corp.

-- 
View this message in context: http://r.789695.n4.nabble.com/Lattice-useOuterStrips-and-axes-tp3330338p3330338.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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.
Received on Tue 01 Mar 2011 - 18:52:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 01 Mar 2011 - 20:40:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive