[R] changing Swaeve output settings for .pdf and .eps - is there a way?

cls59 sharpsteen at mac.com
Fri Apr 17 07:57:52 CEST 2009



markheckmann wrote:
> 
> 
> The pdf() settings do not affect Sweave settings when producing a .pdf
> graphic. How can I change the Sweave default settings to e.g. 3 inch?
> 
> 

Try setting the width and height options in the figure chunk:

<<fig1,echo=F,plot=T,pdf=T,width=5,height=3>>
    plot(1:10
@

To make a certain set of dimensions the defaults, use \SweaveOpts:

\SweaveOpts{width=5,height=3}

-Charlie



-----
Charlie Sharpsteen
Undergraduate
Environmental Resources Engineering
Humboldt State University
-- 
View this message in context: http://www.nabble.com/changing-Swaeve-output-settings-for-.pdf-and-.eps---is-there-a-way--tp23078496p23091546.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list