[R] png() and jpg() devices acting weird.
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,
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
> 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.
> R version 2.8.0 (2008-10-20)
> attached base packages:
>  stats graphics grDevices utils datasets methods base
> other attached packages:
>  Cairo_1.4-4
> View this message in context: http://www.nabble.com/png%28%29-and-
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help