7 Replies Latest reply on Aug 6, 2019 4:36 AM by Vikram Gokhale

    How to include a R plot image in a Dashboard

    mohammad dib


      I tried this example by writing a R script :




      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" ',





      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 ?