Lots of interesting responses to this, but I would add that the qtbase
package allows for interesting hybrid applications between the
web/javascript and R. Qt includes a WebKit port, which is integrated with
the QtScript module,  a javascript implementation.  With qtbase, one could
hypothetically embed WebKit within R and expose R objects (extending
QObject) to the Javascript context. Thus, one can call R through Javascript,
in a running R session. You can also modify the Javascript code in the page,
making it possible to integrate R with any page off the web.

See:
http://qt.nokia.com/qt-in-use/files/pdf/qt-features-for-hybrid-web-native-application-development

I haven't actually tested all of that with qtbase, but it should work in
theory. Embedding widgets (with R callbacks) into web pages definitely
works.

There is also the QtSvg module, which parses and outputs SVG.

Michael

On Wed, Oct 13, 2010 at 8:30 AM, Wolfgang Huber <whuber@embl.de> wrote:

>
> Since now many browsers support (ECMA/Java-)scripted SVG, I am wondering
> whether there are already any examples of inserting R code into SVG
> documents (or a Javascript canvas?) either directly, or perhaps more likely
> through a JavaScript layer, to dynamically generate graphics or make them
> interactive?
>
> I am aware of the excellent packages gridSVG and SVGAnnotation, which
> facilitate making R-generated SVG plots more interesting either at
> construction time or by postprocessing; the above question is about
> employing R at viewing time.
>
> Best wishes
>
> Wolfgang Huber
> EMBL
> http://www.embl.de/research/units/genome_biology/huber
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

	[[alternative HTML version deleted]]

