highcharts - Is it possible to use R Plotly library in R Script Visual of Power BI? -
has tried using plotly
or highchart
in r script visual of power bi,
when try in r script editor , run:
library(ggplot2) library(plotly) x <- 1:5 y <- c(1, 3, 2, 3, 1) plot_ly(x = dataset$period, y = dataset$mean, name = "spline", line = list(shape = "spline"))
error message:
no image created. r code did not result in creation of visuals. make sure r script results in plot r default device.
but runs on r desktop. thought?
the reason right power bi supports render charts created r visualization component png.
try following:
p <- plot_ly(x = dataset$period, y = dataset$mean, name = "spline", line = list(shape = "spline")) plotly_image(p, format = "png", out_file = "out.png")
Comments
Post a Comment