[R] setkeys and Sweave

Christian Hoffmann christian.hoffmann at wsl.ch
Fri Sep 16 10:38:51 CEST 2005

Hi there:



all seem to work under R-2.1.1 under sparc, solaris2.9, but


do not work. I have not been able to find relevant information, googling 
on setkeys proved confusing, at best.

http://cnlart.web.cern.ch/cnlart/218/node85.html states:
  Setting key values globally

If you want to specify a global value for a set of keys, then you can 
use the \setkeys command defined in the keyval package (described below).

As an example let us consider the case where you would like your figure 
to be scaled to the width of the line. Then you could specify the following:


The first argument Gin of the \setkeys command refers to the 
\includegraphics command. The result will be that all images include 
with this command (when the graphicx is loaded) will be set to the 
desired width inside the current group or environment.

In the similar way one could specify any of the possible arguments of 
the \rotatebox command by using the Grot specifier, e.g.,



Which variants of \setkeys are there? Is there a list stating these?

Can several \setkeys{of the same sort} be used inside one document?

Thanks for pointers

Dr. Christian W. Hoffmann,
Swiss Federal Research Institute WSL
Mathematics + Statistical Computing
Zuercherstrasse 111
CH-8903 Birmensdorf, Switzerland

Tel +41-44-7392-277  (office)   -111(exchange)
Fax +41-44-7392-215  (fax)
christian.hoffmann at wsl.ch

More information about the R-help mailing list