On 18/08/2010 10:24 AM, Randall Wrong wrote:
I am sorry, I don't get it :-(

What's the "main body of the Sweave file" ?

Abhijit must have misread what you posted. You did put it outside of the R code part. I'd normally put it earlier in the file, so I got consistent sizing for all of the plots, but it should work where you have it. But don't be afraid to just try it, no need to get confirmation from the list -- you won't break anything.

Duncan Murdoch


Randall



2010/8/18 Abhijit Dasgupta <adasgu...@araastat.com>

> No, the \setkeys statement should be in the main body of the Sweave file,
> not in the R code part.
>
>   On Aug 18, 2010 9:20 AM, "Randall Wrong" <randall.wr...@gmail.com>
> wrote:
>
> Thanks Karen and Abhijit.
>
> I have read the section 4.1.2 of the Sweave user manual. Actually the
> manual
> lacks example code.
>
> I would like to change the option in "includegraphics", not to change the
> true sizes of the pictures.
>
> This is what I usually do :
>
> \begin{figure}
> \centering
> <<echo=false,fig=true>>=
> print( acfplot( x ) )
> @
> \end{figure}
>
> Should I write :
>
> \begin{figure}
>  \setkeys{Gin}{width=0.7\textwidth}
>  \centering
> <<echo=false,fig=true>>=
> print( acfplot( x ) )
> @
> \end{figure}
>
> ?
>
> Thanks for your help,
> Randall
>
>
>
> 2010/8/18 Karen Kotschy <ka...@sevenc.co.za>
>
> > Dear Randall
> >
> > I do it like this:
> >
> > \begin{center}
> >   \setkeys{Gin}{width=0.7\textwidth}
> >   \begin{Scode}{fig=T, echo=F}
> >      ...
> >   \end{Scode}
> > \end{center}
> >
> > Hope this helps.
> >
> > Karen
>
>  >
> > On Wed 18Aug10, Randall Wrong wrote:
> > > Dear R users,
> > >
> > > I am using Sweave.
> > >
> > > I woul...
>
> > 
http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html>
> <http://www.r-project.org/posting-guide.html>
>
> > > and provide commented, minimal, self-contained, reproducible code.
> > >
> > >
> > > --
> > > This message has been scanned for viruses and
> > > dangerous content by MailScanner, and is
> > > believed to be clean.
> > >
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
>
> >
> >
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> r-h...@r-...
>
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to