[R] changing figure size in Sweave

Robin Hankin r.hankin at noc.soton.ac.uk
Thu Nov 17 14:24:18 CET 2005


Hi

In Sweave, how does one change the size of the plots?

I tried using a hook:


<<echo=FALSE, print=FALSE, fig=TRUE>>=
options(SweaveHooks=list(fig=function() ps.options(width=1)))
library(graphics)
pairs(iris)
@

but this didn't change the size of the figure.  How to make the  
figures a
different size?



--
Robin Hankin
Uncertainty Analyst
National Oceanography Centre, Southampton
European Way, Southampton SO14 3ZH, UK
  tel  023-8059-7743




More information about the R-help mailing list