Hello All, I'd like to create diagrams for dynamic web-pages via a cgi-script that itself uses R. Sadly, I found out that the png and jpeg devices need an X-server :-( , so I cannot use these nice devices. Does any one have any experience using R for on-the-flycreation of graphics for web-pages pages? Any suggestions for workarounds? thanks very much for help, Arne -- Arne Mueller Biomolecular Modelling Laboratory Imperial Cancer Research Fund 44 Lincoln's Inn Fields London WC2A 3PX, U.K. phone : +44-(0)207 2693405 | fax :+44-(0)207-269-3534 email : a.mueller at icrf.icnet.uk | http://www.bmm.icnet.uk -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Sun, 17 Mar 2002, Arne Mueller wrote:> Hello All, > > I'd like to create diagrams for dynamic web-pages via a cgi-script that > itself uses R. Sadly, I found out that the png and jpeg devices need an > X-server :-( , so I cannot use these nice devices. Does any one have any > experience using R for on-the-flycreation of graphics for web-pages > pages? Any suggestions for workarounds?I guess you are using Unix/Linux (although you did not say so). Please read the See Also section of ?png. TWO sets of devices have been provided for you to do this. -- 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 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hello Arne, try bitmap. With this function you can also create png, jpg .. (dependig with library you have installed) and this independent from x11. Also have a look to ?bitmap. I use this function together witha pearl counter and a crontab-job. So my webstatistic is updated all 12 hours. What i didn't (yet) checked is, how to start R from a click on a website. How are you do that? gruess joerg> Hello All, > > I'd like to create diagrams for dynamic web-pages via a cgi-script that > itself uses R. Sadly, I found out that the png and jpeg devices need an > X-server:-( , so I cannot use these nice devices. Does any one have any > experience using R for on-the-flycreation of graphics for web-pages > pages? Any suggestions for workarounds? > > thanks very much for help, > > Arne > > -- > Arne Mueller > Biomolecular Modelling Laboratory > Imperial Cancer Research Fund > 44 Lincoln's Inn Fields > London WC2A 3PX, U.K. > phone: +44-(0)207 2693405 | fax :+44-(0)207-269-3534 > email: a.mueller at icrf.icnet.uk | http://www.bmm.icnet.uk >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. -.-> r-help mailing list -- Read > http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or > "[un]subscribe" > (in the "body", not the subject !) To: > r-help-request at stat.math.ethz.ch >_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. _._ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Arne Mueller <a.mueller at icrf.icnet.uk> wrote:> I'd like to create diagrams for dynamic web-pages via a cgi-script that > itself uses R. Sadly, I found out that the png and jpeg devices need an > X-server :-( , so I cannot use these nice devices. Does any one have any > experience using R for on-the-flycreation of graphics for web-pages...?One possibility is to generate a pdf file, then redirect the user's browser to that file. Here are a few relevant lines from such a cgi script: ## Inside the R code: pdf("mynewgraph.pdf") ## Graphics commands dev.off() ## After R has run: print "<META HTTP-EQUIV=Refresh CONTENT='0; URL=mynewgraph.pdf'>"; -- -- David Brahm (brahm at alum.mit.edu) -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._