Christopher W. Ryan
2024-Aug-30 21:22 UTC
[R] lattice panel layout like cross-tabs, like a 2 x 2 table.
Years ago, I recall creating lattice plots with two binary factors, call them f1 and f2, as in xyplot(y ~ x | f1 + f2, data = dd) and I made it so the rows had strips on the left with the levels of one factor, and the columns had strips on the top with the levels of the other factor. Sort of like strip.left() but for just one of the factors. I can't remember or find how I did it, what options to set. Can anyone remind me? Thanks. --Chris Ryan
Deepayan Sarkar
2024-Aug-31 04:37 UTC
[R] lattice panel layout like cross-tabs, like a 2 x 2 table.
You are thinking of latticeExtra::useOuterStrips. Best, -Deepayan On Sat, 31 Aug 2024 at 02:53, Christopher W. Ryan via R-help < r-help at r-project.org> wrote:> Years ago, I recall creating lattice plots with two binary factors, call > them f1 and f2, as in > > xyplot(y ~ x | f1 + f2, data = dd) > > and I made it so the rows had strips on the left with the levels of one > factor, and the columns had strips on the top with the levels of the > other factor. Sort of like strip.left() but for just one of the factors. > > I can't remember or find how I did it, what options to set. Can anyone > remind me? > > Thanks. > > --Chris Ryan > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > https://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]