Forum Discussion

username's avatar
username
Frequent Visitor
9 years ago

Why some custom graph created using R is not displayed in Power BI

Hi, I generated some graphs using local R engine (using plot3d() function - it creates interactive 3D graph), which I'm unable to generate in power BI. Instead of a visual, a small pop containing the generated graph appears and quickly disappears, and in place of the visual, error message appears. Error Message: No image was created. The R code did not result in creation of any visuals. Make sure your R script results in a plot to the R default device. Activity ID e2a34c8e-1564-9b2f-d05a-e4d5e5f17b1b Time Mon Sep 12 2016 15:14:45 GMT+0530 (India Standard Time) Version 2.38.4491.282 (PBIDesktop) Client Error Code ServiceErrorToClientError Error Details No image was created. The R code did not result in creation of any visuals. Make sure your R script results in a plot to the R default device.

9 Replies

  • v-haibl-msft's avatar
    v-haibl-msft
    Microsoft Employee

    username

     

    Could you please provide the r script code written in PBI to us? So that I can try to repro it locally and see if I can help you.

     

    Best Regards,

    Herbert

    • username's avatar
      username
      Frequent Visitor
      x, y, z are cordinates of 3D. dataset <- data.frame(x,y,z) dataset <- unique(dataset) library(rgl) attach(dataset) plot3d(dataset)
      • v-haibl-msft's avatar
        v-haibl-msft
        Microsoft Employee

        username

         

        Did you install your visualization package in your RGUI which mentioned in this article? (It should be rgl here)

        BTW, you can take a look at the configurations in above article to see if there is anything missed.

         

        Best Regards,

        Herbert

  • v-haibl-msft's avatar
    v-haibl-msft
    Microsoft Employee

    username

     

    RGL is not currently supported in the Power BI Service.

    RGL and specifically the plot3D() function do not produce a visual that PBI knows how to render.

    Suggest using the plot3D package instead. This one is supported in the desktop and service.

     

    Best Regards,

    Herbert

    • uki_zhang's avatar
      uki_zhang
      Regular Visitor

      Does PBI support Highcharter or Plotly? I tried both, they are have the error of no image created. If not, do you know any other R packages suppored by PBI to create interactive plots? thx

    • uki_zhang's avatar
      uki_zhang
      Regular Visitor

      Does PBI support Highcharter or Plotly? I tried both, but they all have the same error with plot3D. If not, do you know any R packages that are suppored in PBI to create interactive plots? 

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi,

       

      is RGL package aviable to render in PowerBI this 2019?

       

      Best regards.

      Frank