[R] on trellis.par.set/get (reproducing figures from Pinheiro & Bates)

Deepayan Sarkar deepayan.sarkar at gmail.com
Wed Jan 30 17:30:26 CET 2008


On 1/30/08, Dr. Ottorino-Luca Pantani <ottorino-luca.pantani at unifi.it> wrote:
> Deepayan Sarkar ha scritto:
> > On 1/29/08, Dr. Ottorino-Luca Pantani <ottorino-luca.pantani at unifi.it> wrote:
> >
> >> Dear R users,
> >> I would like to exactly reproduce a figure like the 1.5 or 1.9 or 4.13
> >> from the book
> >> Mixed effects models in S and S-Plus.
> >> Not for the sake of it, but because I have my own data I would like to
> >> plot in that fashion
> >> (no colors)
> >>
> >>
> >> If I write
> >>
> >> plot(ergoStool)
> >>
> >> I can get a good informative plot with colors, but I would like to have
> >> a B&W one instead.
> >>
> >
> > Have you tried
> >
> > trellis.device(color = FALSE)
> > plot(ergoStool)
> >
> > -Deepayan
> >
> >
> Thanks once more for your help.
> It works but the symbols are not the same as reported in the book.
> Now, if I can push your patience a little further, how can I change the
> plot symbols ?

The symbols happen to be controlled by the "superpose.symbols"
setting; other than guessing from the names, this is also indicated by
the output of

show.settings()

So to change it, you would do

trellis.par.set(superpose.symbol = list(pch = <...>))

or some variant of this.

-Deepayan



More information about the R-help mailing list