Skip to content

figure widths in sweave

2 messages · John Charles Considine

#
gRoovers,

Can the size of figures be controlled from within a noweb document
without resorting to editing the \includegraphics sections in the .tex
file?

Can the figure widths be set in the environmental declarations at the
start?

Can they be set within the \begin{figure} environment?

JC
#
On Mon, 2005-09-26 at 20:34 +0800, John Charles Considine wrote:
yes,
Sweave sets graphics widths to 0.8\textwidth by default.  To change it
for a document, to say 1.0\textwidth, include the line 

\setkeys{Gin}{width=1\textwidth}

after \begin{document} in the noweb file.

see p.12 of Sweave manual at...
http://www.ci.tuwien.ac.at/~leisch/Sweave/Sweave-manual-20050914.pdf