[R] Increasing space for main title in a lattice (xyplot()) graphics.
Richard M. Heiberger
rmh @end|ng |rom temp|e@edu
Thu Feb 13 06:07:59 CET 2020
It works as anticipated for me
> xyplot(1 ~ 1,
+ main="The quick brown fox jumped\n over the lazy dog.")
> xyplot(1 ~ 1,
+ main="The quick brown fox jumped over the lazy dog.")
Something else you are doing is probably causing the difficulty.
On Wed, Feb 12, 2020 at 11:59 PM Rolf Turner <r.turner using auckland.ac.nz> wrote:
> I'm trying to do an xyplot() with a longish main title that I'd like to
> split into two lines, something like
> main="The quick brown fox jumped\n over the lazy dog.")
> When I do this I only get the last half, i.e. the "over the lazy dog."
> bit, and the first half doesn't appear.
> In base graphics I'd handle this sort of thing by increasing the third
> entry of the "mar" parameter.
> How can increase the space allocated for the title in lattice graphics?
> I've done a substantial amount of Googling and can't find anything
> helpful. I've fiddled about with trellis.par.set() and cannot seem to
> get any effect.
> Could someone please give my poor feeble brain some guidance? Ta.
> Rolf Turner
> Honorary Research Fellow
> Department of Statistics
> University of Auckland
> Phone: +64-9-373-7599 ext. 88276
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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