Skip to content

graphics with rterm

2 messages · Robin.Thomson@csiro.au, Brian Ripley

#
I would like to use R as the graphical interface for a fortran program I am
writing. Presently my fortran code produces a set of data files then sends
an "rterm ..... <filename.r >out.out" line to my windows system. This causes
rterm to read in the data files, draw plots on my screen in milliseconds
.... and then terminate and disappear, plots and all, forever. It's this
last bit of efficiency that I would like to curb. I would like the graphs to
appear and stay until I'm ready to dismiss them. I would rather not have
rterm produce my plots as metafiles because I would like them to be
immediately visible on the screen - I don't want to have to fiddle around
opening graphics files. 

Any ideas? Is rterm the right thing to be using?

Thanks
Robin
#
On Wed, 7 May 2003 Robin.Thomson at csiro.au wrote:

            
Then put something in your script to say so when you want it to end.  The
user cannot interact via the keyboard (you have redirected stdin), but you
can put up a dialog box. (See ?winDialog.)

[This has come up several times, so you might want to consult the 
archives.]
Probably not, but then Fortran is not conducive to writing interfaces.
Why not call your Fortran from R rather than v.v.?  A more sophisticated 
approach would be to call R via a DCOM server directly from your code, but 
I think that is going to be hard/impossible from a 1950s language.