[R] xyplot main title question

Deepayan Sarkar deepayan.sarkar at gmail.com
Sun Sep 25 20:34:19 CEST 2005


On 9/25/05, Pogoda, Wendy <wpogoda at coba.usf.edu> wrote:
> When I use the xyplot function (lattice library) the titles are too long
> (i.e. part of the title are cut off).  This fixes if I maximize the plot,
> but I would like the user of the program to not have to manually maximize
> the plotting window.  I have tried to shrink the main title by using the
> "par(cex.main=.7)" before the xyplot function, but it seems any prior par
> options are ignored by xyplot.  There is an option inside xyplot called
> "par.settings", but I have been unable to figure out how to make it change
> the main title text size.
>
> So, there are 2 possible solutions to my problem: 1) if there a text command
> to maximize the graphing window, what is it? or

None that I know of (though you can specify the width and height when
starting a device).

> 2) how can I change the main title text size in the xyplot function?

xyplot( ... ,
       par.settings = list(par.main.text = list(cex = 0.7)))

Deepayan




More information about the R-help mailing list