How to download plots in R


#1

I want to download/export the plots from plotly in R. How can I do that? I tried using orca but i am getting some Maptoken error. Please could someone help.


#2

It looks like there was a limitation in Plotly R which has been improved in version 4.8.0.9000. What version of Plotly R are you using?


#3

I am using the most latest version of the plotly…


#4

Can you tell me the results of packageVersion('plotly') in R?
`


#5

I am using the plotly version 4.8.0.


#6

@bhavenm, you will need to use the development version of Plotly R to resolve your issue. You can install it using

devtools::install_github("ropensci/plotly")

#7

@michaelbabyn but then even with the development version, what commands, do I need to write to make it work?


#8
p <- plot_ly() %>% add_lines(x=1:30, y=rlnorm(30));
orca(p, 'plot.png')

@bhavenm, the commands above work for me.


#9

I tried this. It works in normal condition… wondering how can you make it work along with shiny. Any suggestions?