I'm working to create a visual in Power BI using R plotly library (which I see is now supported by Power BI) but I am receiving an error which states "No image was created. The R code didn't result in creation of any visuals. Make sure your R script results in a plot to the R default device."
Here is the code:
g <- plot_geo(dataset, lat = ~Latitude, lon = ~Longitude, color= ~Dollars)
g_info <- g %>% add_trace(hoverinfo = "text", hovertext = paste("DMA: ", dataset$DMA_NAME, "Dollars: ", dataset$Dollars))
g_info
In RStudio this works great and results in the interactive map which I am trying to produce. However nothing will show up in Power BI.
Seems like every article about this is from 2017 before plotly was supported so I'm hoping there is something simple that I'm missing with today's PBI environment.