I'm exploring a function with waterfall chart.
The original version is based on
plot_ly interactive version.
fig <- plot_ly( data,
type = "waterfall",
measure = ~measure,
x = ~x,
textposition = "outside",
But, I'd also want to save the same chart as a static png/jpeg image.
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?