[R] setkeys and Sweave

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


Hi there:

Using

\setkeys{Gin}{width=1.0\textwidth}
\setkeys{Gin}{height=10cm}
\setkeys{Gin}{height=0.8\textwidth}

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

\setkeys{Gin}{scale=0.3}
\setkeys{Gin}{angle=90}

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:

   \setkeys{Gin}{width=\linewidth}

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.,

   \setkeys{Grot}{origin=tc}
---

Question:

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
Christian


-- 
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
http://www.wsl.ch/staff/christian.hoffmann




More information about the R-help mailing list