[R] Formatting panel borders in lattice package

Deepayan Sarkar deepayan.sarkar at gmail.com
Tue Jul 10 20:32:25 CEST 2007


On 7/10/07, Hil Lyons <hillyons at stat.washington.edu> wrote:
> Hello all --
>
> I would like to thicken the borders between panels -- or more generally,
> all borders -- in a plot generated using lattice (specifically,
> levelplot).  Something similar perhaps to box() function in graphics.
> I haven't been successful in reviewing available documentation.
>
> The problem stems from using a grayscale colorscheme that puts black
> colors near the borders, thus obscuring them.  Then, another alternative
> would be to somehow inject white space between panels.
>
> In summary:
> 1) Does anybody know of a good way to increase the line thickness of
> borders in lattice, specifically those separating panels?

qqmath(~height | voice.part, singer, par.settings = list(axis.line =
list(lwd = 3)))

(or probably closer to what you want)

qqmath(~height | voice.part, singer, par.settings = list(axis.line =
list(lwd = 3)),
       scales = list(lwd = 1))

> 2) Does anybody know of a way to separate panels with whitespace?

qqmath(~height | voice.part, singer, between = list(x = 0.5, y = 0.5))

-Deepayan



More information about the R-help mailing list