Skip to content

Dynamic visualisation of R data using Adobe FLEX

2 messages · Yihui Xie, Harsh

#
Hi Harsh,

If your project is so specific on the regression model, my suggestion
is to use tcl/tk or Gtk2 interface instead of FLEX, because your
requirement on interaction is simple (e.g. you don't need to
drag-and-drop points).

I think the example 'run.cor2.examp()' in 'TeachingDemos' package can
give you enough inspiration.

Or if you want to do the job (to change the slope) automatically, you
may want to see the example in the 'animation' package:

##
install.packages("animation")
library(animation)

# default animation in R: with slope changing
least.squares()

# animation in an HTML page
oopt = ani.options(ani.height = 450, ani.width = 600,
    outdir = tempdir(), nmax = 50, title = "Demonstration of Least Squares",
    description = "We want to find an estimate for the slope
         in 50 candidate slopes, so we just compute the RSS one by one. ")
ani.start()
par(mar = c(4, 4, 0.5, 0.1), mgp = c(2, 0.5, 0), tcl = -0.3)
least.squares()
ani.stop()
ani.options(oopt)
##

P. S. I'm quite interested in interactive visualization using R and
Flash (you may also want to know Flare and SWF Tools!), so please let
me know if there's any progress in your project.

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086
Mobile: +86-15810805877
Homepage: http://www.yihui.name
School of Statistics, Room 1037, Mingde Main Building,
Renmin University of China, Beijing, 100872, China
On Thu, Apr 30, 2009 at 2:54 AM, Harsh <singhalblr at gmail.com> wrote:
2 days later
#
Hi Yihui,
In trying to make FLEX and R talk, I have decided to approach it by
using the Rserver JRclient as the middle tier in a three tier
approach.
Tier 1: FLEX Visualisation
Tier 2: JRclient (http://rosuda.org/Rserve/example.shtml)
Tier 3: Rserver

I have yet to begin working on this front, but would like to know what
you think about this approach. I understand FLEX and JAVA communicate
seamlessly and a JAVA client to communicate with Rserver seems to seal
the deal for making FLEX and R talk to each other.

Thanks
Harsh Singhal
On Sat, May 2, 2009 at 12:37 PM, Yihui Xie <xieyihui at gmail.com> wrote: