2 Replies Latest reply on Jan 9, 2014 4:25 AM by mohammad dib

    How to include a R plot image in a Dashboard

    mohammad dib

      Hello,

      I tried this example by writing a R script :

       

      SCRIPT_STR('

       

      foo <- data.frame(Date = seq(as.Date("2010-01-01"), as.Date("2010-12-31"),

                                    by = "days"),

                         Returns = rnorm(365));

       

      dens <- density(foo$Returns);

      BAR <- with(dens, approxfun(x = x, y = y));

      foo <- within(foo, Density <- BAR(Returns));

      plot(foo$Returns, foo$Density);"test" ',

       

      "test")

       

       

      The result of the plot function appears but it freezes and I am obliged to use task manager to close the R plot window.

      How can I do to draw curves using R from Tableau ?

       

      Thanks