I'm exploring a function with waterfall chart.
The original version is based on plot_ly interactive version.
Example: fig <- plot_ly( data, type = "waterfall", measure = ~measure, x = ~x, textposition = "outside", y= ~y)
But, I'd also want to save the same chart as a static png/jpeg image.
Found that orca package can help w/ that: orca(fig, "Static Image.png", width = 7 * 300, height = 4 * 300)
Yet, it is not intuitive enough & does not seem to collaborate w/ RStudio Cloud.
Wondered if anyone knows an easier way to save static plot_ly charts & specify resolution?
Thanks!
Thanks, @nirgrahamuk !
I tried this approach.
Code creates temp.file for me, but the temp.png appears to be empty.
Maybe orca is the only option for now.