[R] expression in lattice panel strip

Naresh Gurbuxani n@re@h_gurbux@n| @end|ng |rom hotm@||@com
Sun Mar 2 15:56:29 CET 2025


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 * pi) + N(0, 1))), type = c("l", "g"), main = expression(2 * cos(2 * pi * t / 50 + 0.6 * pi)))

# Greek letter pi is shown in main title, but not in panel strips


More information about the R-help mailing list