How is it possible to resize figures produced via a Sweave script?
I tried scalebox
and others, but I can't succeed to obtain a figure with an acceptable size in my beamer with direct Sweave output like:
<<MyGraph,fig=T>>
x <- rnorm(1000)
y <- rnorm(1000)
plot(x,y)
@
Good answers for figures but for text output ? (see below)
I would also like indications to resize for example an output which is too large for the screen.
For example:
<<MyBigData.Frame,echo=off>>
summary(mybigdata.frame)
@
Best Answer
For the figures something like,
should work. (It defaults to inches.)
To set the default size of all figures in the document with respect to the text block, try, e.g.,
You can set absolute widths (in inches or cm) that way, too.