[R] Simplifying Sweave graphics

Stéphane Dray dray at biomserv.univ-lyon1.fr
Fri Nov 10 13:26:22 CET 2006


Hi.
One guy of my team (Thibaut Jombart) wrote a driver to sweave in png 
(see http://tolstoy.newcastle.edu.au/R/devel/06/03/4599.html). The 
driver works very nice and is very useful for plots with many points, 
raster images... I thought that Friedrich Leisch would include it in the 
Sweave distribution, but it is not in the current distribution.
I am sure that you can ask Thibaut (jombart_at_biomserv.univ-lyon1.fr) 
for the function.

Sincerely.

ONKELINX, Thierry wrote:
> Dear all,
>
>  
>
> I was wondering if it's possible to simplify graphs created with Sweave.
> I'm using in a document several plots with each about 4000 points
> (qqnorm(rnorm(4000))). It looks likes the information of each points is
> maintained in the graph. As a result of that the pdf filesize get's
> quite large (about 4,2 MB for a 23 page document.) Is there a way to
> reduce the complexity of these graphs? Like creating the graphs in a
> bitmap format instead of a vector format?
>
>  
>
> Thanks,
>
>  
>
> Thierry
>
>  
>
> ------------------------------------------------------------------------
> ----
>
> ir. Thierry Onkelinx
>
> Instituut voor natuur- en bosonderzoek / Reseach Institute for Nature
> and Forest
>
> Cel biometrie, methodologie en kwaliteitszorg / Section biometrics,
> methodology and quality assurance
>
> Gaverstraat 4
>
> 9500 Geraardsbergen
>
> Belgium
>
> tel. + 32 54/436 185
>
> Thierry.Onkelinx at inbo.be <mailto:Thierry.Onkelinx at inbo.be> 
>
> www.inbo.be <http://www.inbo.be/>  
>
>  
>
> Do not put your faith in what statistics say until you have carefully
> considered what they do not say.  ~William W. Watt
>
> A statistical analysis, properly conducted, is a delicate dissection of
> uncertainties, a surgery of suppositions. ~M.J.Moroney
>
>  
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
>
>   


-- 
Stéphane DRAY (dray at biomserv.univ-lyon1.fr )
Laboratoire BBE-CNRS-UMR-5558, Univ. C. Bernard - Lyon I
43, Bd du 11 Novembre 1918, 69622 Villeurbanne Cedex, France
Tel: 33 4 72 43 27 57       Fax: 33 4 72 43 13 88
http://biomserv.univ-lyon1.fr/~dray/



More information about the R-help mailing list