export: Export a plotly graph to a static file

Description Usage Arguments Examples

Description

Export a plotly graph to a static file

Usage

1
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

1
2
3
4
## Not run: 
export(plot_ly(economics, x = ~date, y = ~pce))

## End(Not run)

gvarunkumar/plotly documentation built on May 17, 2019, 9:29 a.m.