Re: R Questions
- From: Doug Morse <morse@xxxxxxxx>
- Date: Fri, 17 Aug 2007 00:05:50 +0000 (UTC)
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
- Follow-Ups:
- Re: R Questions
- From: hp
- Re: R Questions
- References:
- R Questions
- From: hp
- R Questions
- Prev by Date: Re: Sports probability question
- Next by Date: Re: Sports probability question
- Previous by thread: R Questions
- Next by thread: Re: R Questions
- Index(es):
Relevant Pages
|