Re: [R] expression in lattice panel strip

2025-03-03 Thread Naresh Gurbuxani
Thanks all for your responses. My problem is solved. Sent from my iPhone On Mar 3, 2025, at 1:08 AM, Deepayan Sarkar wrote:  This is possible but a little cumbersome. Bert is on the right track with strip.custom: xyplot(ts(cbind(x1 = cs, x2 = cs + w)), strip = strip.custom(factor.lev

Re: [R] expression in lattice panel strip

2025-03-02 Thread Deepayan Sarkar
This is possible but a little cumbersome. Bert is on the right track with strip.custom: xyplot(ts(cbind(x1 = cs, x2 = cs + w)), strip = strip.custom(factor.levels = expression(2 * cos(2 * pi * t / 50 + 0.6 * pi), 2 *

Re: [R] expression in lattice panel strip

2025-03-02 Thread Bert Gunter
Full disclosure: I have never plotted time series using this xyplot method. However, ?xyplot.ts says: "screens factor (or coerced to factor) whose levels specify which panel each series is to be plotted in. screens = c(1, 2, 1) would plot series 1, 2 and 3 in panels 1, 2 and 1. May also be a nam

[R] expression in lattice panel strip

2025-03-02 Thread Naresh Gurbuxani
Is it possible to include expression in lattice panel strip? Thanks, Naresh cs <- 2 * cos(2 * pi * (1:500) / 50 + 0.6 * pi) w <- rnorm(500) xyplot(ts(cbind(x1 = cs, x2 = cs + w)), screens = list(x1 = expression(2 * cos(2 * pi * t / 50 + 0.6 * pi)), x2 = expression(2 * cos(2 * pi * t / 50 + 0.6 *