Re: [R] combineLimits and Dates

2012-06-26 Thread Peter Ehlers
On 2012-06-25 15:30, Duncan Mackay wrote: Hi Elliot This works on Win 7 ver 2.15 useOuterStrips(combineLimits( xyplot(x + y ~ d | g, groups = h, data = dat, type = 'l', scales = list(y = list(relation = free), x = list( at =seq(from =

[R] combineLimits and Dates

2012-06-25 Thread Elliot Joel Bernstein
I'm having some trouble using the latticeExtra 'combineLimits' function with a Date x-variable: require(lattice) set.seed(12345) dates - seq(as.Date(2011-01-01), as.Date(2011-12-31), days) dat - data.frame(d = rep(dates, 4), g = factor(rep(rep(c(1,2), each = length(dates)),

Re: [R] combineLimits and Dates

2012-06-25 Thread Duncan Mackay
Hi Elliot This works on Win 7 ver 2.15 useOuterStrips(combineLimits( xyplot(x + y ~ d | g, groups = h, data = dat, type = 'l', scales = list(y = list(relation = free), x = list( at =seq(from = as.Date(2011-01-01), to = as.Date(2011-10-01), by = 3 month),