[R] png() and jpg() devices acting weird.

Avram Aelony aavram at mac.com
Mon Dec 22 01:37:00 CET 2008



I experienced a similar problem generating PNGs on linux and found  
that installing a missing font library corrected the situation.
Hope this helps,

Avram


On Dec 19, 2008, at 12:46 PM, Jeroen Ooms wrote:

>
> I use a CentOS 5.2 VPS to generate graphs through an R web- 
> application. I
> generate generate both pdf() and png() formats of the graphs. The  
> pdf works
> just fine and generates perfect pictures. However, the figures  
> generated by
> the png() (and also the jpg) device are messed up.
>
> The weird thing is that it does not generate an error. It does  
> generate a
> file with a figure of the correct size, but the figures are mostly  
> just
> white space, or small parts of the actual figure.
>
> X11 is not installed on the machine so I have to use type="cairo".  
> I have
> tried installing and updating cairo, glib2, gtk+ in linux, and  
> installed the
> R-package "Cairo", but with no result.
>
>> sessionInfo()
> R version 2.8.0 (2008-10-20)
> x86_64-redhat-linux-gnu
>
> locale:
> C
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> other attached packages:
> [1] Cairo_1.4-4
>
>
> -- 
> View this message in context: http://www.nabble.com/png%28%29-and- 
> jpg%28%29-devices-acting-weird.-tp21098121p21098121.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