Re: R Questions



I'm not that familiar with Cobra, so my response is limited to Perl..

1. Yes. http://www.omegahat.org/RSPerl/ is one option. Google for more.

2. Yes. It depends on which graphics device you are using. Run
"help(Devices)" for general graphic device information. "help(x11)" or
"help(windows)" for platform-specific device information -- both let you
specify width/height and pixels/inch. On ghostscript-enabled R
installations, the bitmap device might be just what you need
("help(bitmap)") -- note especially the "type" parameter, which supports a
wide range of output formats.

3. Most likely. The bitmap device (just mentioned) does not support GIF
directly, but converting from PNG/JPG/whatever to GIF should be easy to do
within Perl.

Pretty routine stuff -- I wouldn't expect you to have too much trouble
getting what you want set up and running just fine.

Hope this helps.


On Thu, 16 Aug 2007 18:29:34 -0500, hp <hp@xxxxxx> wrote:
I'm a statistician who runs a daily report that produces multiple graphs.
Right now, I'm having to manually copy-and-paste each graph into .gif files.

1. Is there a way for Perl (or Cobra) to invoke R?

2. Is there a way to get a graph to have an exact width and height in
pixels?

3. Is there a way for Perl/Cobra to directly save the graph as a .gif file?


Thanks
.



Relevant Pages

  • Re: Creating reports ??
    ... I want to know what people think or have used to create reports in perl. ... Maybe creating some kind of graph or an excell report? ... For graphs, I've always used jpgraph. ...
    (perl.beginners)
  • Re: Perl Graph? (newbie)
    ... > Hi, I'm looking to construct a graph using Perl, to be displayed on a HTML ... / Excuse the arrow but I have no spoon. ...
    (comp.lang.perl.misc)
  • Re: Perl Graph? (newbie)
    ... > Hi, I'm looking to construct a graph using Perl, to be displayed on a HTML ... / Excuse the arrow but I have no spoon. ...
    (comp.lang.perl.misc)
  • Re: perl graph theory (using Graph::Directed)
    ... I'm fairly new to perl and graph theory, ... Do you want connected subgraphs or strongly connected? ...
    (comp.lang.perl.misc)