Hi there

Would you be so kind to send an example, please?

Many thanks

Ed



On Fri, Aug 5, 2011 at 9:43 PM, Duncan Mackay <mac...@northnet.com.au>wrote:

> Hi
>
> The are three places where the size of the graphs can be customised
> 1 Sweave with options
> 2 R in the device
> 3 Latex specifying dimensions or set scale=magnification.
> However if your are using it in a float it there
> is a maximum size depending on the number of floats in a page.
> see \floatsep and associated commands
>
> In Sweave/R what you change depends on how you want to work with the
> graphics
>
> Duncan
>
>
>
>
> At 00:23 06/08/2011, you wrote:
> >Hello
> >
> >Many thanks for the replies.
> >
> >Solution 1 (landscape package) works but the output figure is kind of
> small.
> >
> >Solution2:  includegraphics outside -
> >Unfortunately it does not work.   Includegraphics cannot find Myfig.
> >
> >Solution 3- \usepackage[figureright]{rotating}
> >works and the output figure is in a reasonable size.
> >
> >I am using print(xyplot) from lattice to plot
> >the figures and have noticed that adding width
> >and height options breaks Sweave in all cases.
> >
> >Cheers
> >
> >Ed
> >
> >
> >
> >On Fri, Aug 5, 2011 at 3:07 AM, Duncan Mackay
> ><<mailto:mac...@northnet.com.au>mac...@northnet.com.au> wrote:
> >Hi Eduardo
> >
> >in the preamble put
> >
> >\usepackage[figureright]{rotating}
> >
> >see manual for figureright if you do not like it
> >
> >and then some graphics with options where needed
> >
> >\begin{sidewaysfigure}
> >\centering
> >\includegraphics[width=,%
> >                 clip=true,%
> >                 trim=0in 0in 0in 0in,% LBRT
> >                 keepaspectratio=true]%
> >                 {filename}
> >\end{sidewaysfigure}
> >
> >otherwise \usepackage landscape (check spelling) for a full page
> >
> >HTH
> >
> >Duncan
> >
> >Duncan Mackay
> >Department of Agronomy and Soil Science
> >University of New England
> >ARMIDALE NSW 2351
> >Email: home <mailto:mac...@northnet.com.au>mac...@northnet.com.au
> >
> >
> >
> >At 05:58 05/08/2011, you wrote:
> >On 04/08/2011 3:40 PM, Eduardo M. A. M. Mendes wrote:
> >Dear R-users
> >
> >I am trying to understand how Sweave works by
> >running some simple examples.  In the example I
> >am working with there is a chunk where the
> >R-commands related to plotting a figure are
> >placed.  When running R CMD Sweave … , pdflatex
> >the output is a portrait figure.  I wonder
> >whether it would be possible to change the
> >orientation to landscape (not in the latex file but in Rnw file).
> >
> >
> >Sweave can change the height and width of the
> >figure so it is more landscape-shaped (width >
> >height) using options at the start of the chunk.
> >
> >Rotating a figure is something LaTeX needs to
> >do:  you would tell Sweave to produce the figure
> >but not include it, then use \includegraphics{}
> >with the right option to rotate it.
> >
> >For example:
> >
> ><<Myfig, fig=TRUE, include=FALSE, width=7in, height=4in>>=
> >plot(rnorm(100))
> >@
> >
> >\includegraphics[angle=90,width=0.8\textheight]{Myfig}
> >
> >This is untested, and you'll need to consult a
> >LaTeX reference for rotating the figure caption, etc.
> >
> >Duncan Murdoch
> >
> >______________________________________________
> ><mailto:R-help@r-project.org>R-help@r-project.org mailing list
> ><https://stat.ethz.ch/mailman/listinfo/r-help>
> https://stat.ethz.ch/mailman/listinfo/r-help
> >PLEASE do read the posting guide
> ><http://www.R-project.org/posting-guide.html>
> http://www.R-project.org/posting-guide.html
> >and provide commented, minimal, self-contained, reproducible code.
> >
> >
> >______________________________________________
> ><mailto:R-help@r-project.org>R-help@r-project.org mailing list
> ><https://stat.ethz.ch/mailman/listinfo/r-help>
> https://stat.ethz.ch/mailman/listinfo/r-help
> >PLEASE do read the posting guide
> ><http://www.R-project.org/posting-guide.html>
> http://www.R-project.org/posting-guide.html
> >and provide commented, minimal, self-contained, reproducible code.
> >
>
>         [[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.
>
>

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

Reply via email to