[R] Lattice: combine the same strip?

Deepayan Sarkar deepayan.sarkar at gmail.com
Wed Sep 30 08:40:41 CEST 2009


On Sat, Sep 19, 2009 at 3:36 PM, di jianing <jianingdi at gmail.com> wrote:
> Hello R helpers,
>
> I am producing a figure with dual strips, i.e., x~y | S1 + S2, where S1 and
> S2 are two strips. For example, in figure 2.1 at
> http://lmdvr.r-forge.r-project.org/figures/figures.html.
>
> In this case, I would like to combine the the top strip, since all three
> pictures in the same row have the same level based on the first strip. In
> other words, instead of
>
> | -- S11 -- | -- S11 -- | -- S11 -- |
> | -- S21 -- | -- S22 -- | -- S23 -- |
>
> I would like my graph to look like
>
> | ----------------- S11 ---------------- |
> | -- S21 -- | -- S22 -- | -- S23 -- |
>
> In there a way I can do it?

No (or at least, way too complicated). The strip function gets called
for each panel, and there is no provision to combine strips across
panels.

As Baptiste suggested, useOuterStrips() is probably an easier alternative.

-Deepayan

>
> Thanks!
> JD
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>




More information about the R-help mailing list