[R] Plotting with Statistics::R, Perl/R

Joe Conway mail at joeconway.com
Sat Jan 22 05:55:22 CET 2005


Dirk Eddelbuettel wrote:
> On Fri, Jan 21, 2005 at 06:06:45PM -0800, Leah Barrera wrote:
>> I am trying to plot in R from a perl script using the Statistics::R
>>  package as my bridge.  The following are the conditions:
>> 
>> 0. I am running from a Linux server.
>> 
> Plotting certain formats requires the X11 server to be present as the
> font metrics for those formats can be supplied only the X11 server.
> Other drivers don;t the font metrics from X11 -- I think pdf is a
> good counterexample. When you run in 'batch' via a Perl script, you
> don't have the X11 server -- even though it may be on the machine and
> running, it is not associated with the particular session running
> your Perl job.  There are two common fixes:
> 
> a) if you must have png() as a format, you can start a virtual X11
> server with the xvfb server -- this is a bit involved, but doable;

Attached is an init script I use to start up xvfb on Linux.

HTH,

Joe
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Xvfb
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20050121/d7e7cded/Xvfb.pl


More information about the R-help mailing list