Export plots to powerpoint

Hi,
I have a doubt. Is it possible to export plotly/ggplotly plots to Powerpoint and keep it interactive?

Thanks

One way I've seen this done is from the Microsoft Add in - 'Web Viewer'
I just tested this by inserting an instance into a slide, and giving it the link
plotly.com/r/getting-started/#getting-started-with-plotly-for-r.
There may be another way with http://skp.mvps.org/liveweb.htm
but I don't have time to test it.

Here is a method for exporting as html



library(plotly)
library(htmlwidgets)
fig <- plot_ly(midwest, x = ~percollege, color = ~state, type = "box")
fig
widg <- plotly::as_widget(fig)
htmlwidgets::saveWidget(widg,"mywidge.html")

Thanks for your answer!
The first method you tested worked? The second way doesn't work in my pc. I'm not understanding how to do the first one. Can you explain me please?

from inside powerpoint, can you succeed in finding and installing Microsoft Add in - 'Web Viewer'

Yes I already installed Microsoft Add in - 'Web Viewer'. If I try with the link "mywidge.html", it doesn't work. Which is the link I should use?

therefore provide a url in the url box.
I made a suggestion from the plotly r website

So I can't use this code there?
library(plotly)
library(htmlwidgets)
fig <- plot_ly(midwest, x = ~percollege, color = ~state, type = "box")
fig
widg <- plotly::as_widget(fig)
htmlwidgets::saveWidget(widg,"mywidge.html")

thats R code.
thats about making a local html.
if you have a secure webserver with a https:// service you could host that html at your url and use that url in the powerpoint

Yes, I would like to do that. Do you know a secure webserver that I could use?

you could probably use https://www.shinyapps.io/ but then why use powerpoint at all, maybe a slideshow still shinyapp would work out of the box, and not rely on powerpoint audience installing addons.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.