[R] Increasing space for main title in a lattice (xyplot()) graphics.

Rolf Turner r@turner @end|ng |rom @uck|@nd@@c@nz
Thu Feb 13 10:02:22 CET 2020


On 13/02/20 6:16 pm, Deepayan Sarkar wrote:

> On Thu, Feb 13, 2020 at 10:39 AM Richard M. Heiberger <rmh using temple.edu> wrote:
>>
>> 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.
> 
> Yes, the necessary space should be automatically allocated. Details of
> version / device might help diagnosing the problem.
> 
> -Deepayan

Aaaarrrgghhh!!! The diagnosis of the problem was, as usual, trivial.  It 
was all down to my overwhelming stupidity.  I put together the main 
title by pasting together various bits --- and FORGOT to include the 
very first bit, which was the first line of the two-line title.  (Smoke 
comes out of ears!!!)

Took me hours, with accompanying hair loss, to track down that 
particular piece of stupidity.  Tried everything except the obvious!!!

Sorry for the noise.

cheers (said he, not very cheerfully),

Rolf

-- 
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276



More information about the R-help mailing list