[R] How to reduce plot size on linux?

Rainer Schuermann rainer.schuermann at gmx.net
Wed Apr 25 12:45:33 CEST 2012


Cross posting
http://stackoverflow.com/questions/10308955/how-to-reduce-image-size-in-sweave

The code you have provided there is unusable, I assume your problems come from 
a lack of understanding how Sweave works (nothing to do with Linux).

Always make sure that 
<<>>=
and
@
are always the first characters on the line, 

Comment character in R is # and % in Latex (never //).

Have a look at Section 9 of this paper here
http://www.stat.auckland.ac.nz/%7Eihaka/downloads/Sweave-customisation.pdf
This should solve your problems with plot size in Sweave.

Rgds,
Rainer




On Tuesday 24 April 2012 19:02:23 Manish Gupta wrote:
> Hi,
> 
> I am working on linux and i need to reduce plot size (bar plot) so that i
> can easily use in sweave.  How can i implement it?
> 
> Regards
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/How-to-reduce-
plot-size-on-linux-tp4585371p4585371.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help at 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.



More information about the R-help mailing list