plotly (version 4.5.2)

export: Export a plotly graph to a static file

Description

Export a plotly graph to a static file

Usage

export(p, file = "plotly.png", ...)

Arguments

p

a plotly or ggplot object.

file

a filename. See the file argument of webshot::webshot for valid extensions.

...

arguments passed onto webshot::webshot

Examples

Run this code
# NOT RUN {
export(plot_ly(economics, x = ~date, y = ~pce))
# }

Run the code above in your browser using DataLab