Dear R developers, i would like to get the plots of R in the form of matrix data which i want to transfer to an external image software. Is it generally possible to get the plot information in form of data values? Another question concerns about the command line execution of scripts.>From an external application i want to be able to call R scripts (R -e ....)to plot data. If i call the scripts everything executes fine but the plotting window terminates instantly. Is there a possibility to stop the termination of the window(until it is closed manually)? Thanks in advance for any answers! -- View this message in context: http://www.nabble.com/R-plot-as-image-data-and-another-question-tp16116808p16116808.html Sent from the R help mailing list archive at Nabble.com.
On Tue, 18 Mar 2008, Bio7 wrote:> > Dear R developers, > > i would like to get the plots of R in the form of matrix data which i want > to transfer > to an external image software. Is it generally possible to get the plot > information in form of > data values? > > Another question concerns about the command line execution of scripts. >> From an external application i want to be able to call R scripts (R -e ....) > to plot data. > If i call the scripts everything executes fine but the plotting window > terminates instantly. > Is there a possibility to stop the termination of the window(until it is > closed manually)?What OS is this, what plot device? par(ask=TRUE) may help, for example (depending on the answers).> Thanks in advance for any answers!> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.PLEASE do supply the information requested. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
In my case i use R by means of Rserve from my Java application. Since i`ve integrated the well known image analysis tool ImageJ i can send images to R and vice versa. This works well and is quite fast. My idea now was to get the plot information from R in the form of matrix data which i can transfer to my application to create an image from the data in ImageJ. To my second question: Since it is not possible to plot from Rserve it would be nice to call R for the plot creation (from the command line). As far as i remember the Rserve application crashed as i applied the suggested command. -- View this message in context: http://www.nabble.com/R-plot-as-image-data-and-another-question-tp16116808p16117923.html Sent from the R help mailing list archive at Nabble.com.