[R] What name-value pairs can be used in gpar()?

Paul Murrell p.murrell at auckland.ac.nz
Wed Nov 28 00:38:35 CET 2001


Hi


> To use grid graphics with lattice, the help for gpar indicates that
> any number of named arguments can be specified but where do we find
> what names make any sense?


Sorry, hadn't got that far in the documentation yet (plus the list is not
yet fixed).
The following should work:

"col" colour for lines and borders,
"fill" colout for filling regions,
"lty"  line type
"lwd" line width
"fontsize" the size of text (in points)
"lineheight" the height of a line as a multiple of fontsize

I don't think that different font faces are implemented in the current
released version.
In the next version, the following will also work:

"font" font face


> I have ascertained that fontsize is given in points such as one
> would use in a postscript device argument and uses that same name.
> It's not as I'd have thought, something corresponding to cex in
> regular par() settings.  Evidently there is a good reason for that,
> but what I'd like to know is how do I set the font to italic?  And in
> general, is there a listing of what possible names can be set by
> gpar()?


I have used "fontsize" and "lineheight" in grid because I prefer that way of
expressing things.
I could try including "cex" too if there was sufficient demand.

Paul


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list