plotly (version 2.0.2)

plotly_POST: Create/Modify plotly graphs

Description

Create and modify graphs on your plotly account via plotly's REST API https://plot.ly/rest/

Usage

plotly_POST(x, filename, fileopt = "new", world_readable = TRUE)

Arguments

x
either a ggplot object, a plotly object, or a list.
filename
character string describing the name of the plot in your plotly account. Use / to specify directories. If a directory path does not exist it will be created. If this argument is not specified and the title of the plot exists, that will be used for the fi
fileopt
character string describing whether to create a "new" plotly, "overwrite" an existing plotly, "append" data to existing plotly, or "extend" it.
world_readable
logical. If TRUE, the graph is viewable by anyone who has the link and in the owner's plotly account. If FALSE, graph is only viewable in the owner's plotly account.

Value

  • An R object created by mapping the JSON content of the plotly API response to its R equivalent.

See Also

plot_ly, signup

Examples

Run this code
p <- plot_ly(mtcars, x = vs, type = "bar")
plotly_POST(p, filename = "mtcars-bar-plot")

Run the code above in your browser using DataLab