Learn R Programming

shinydlplot (version 0.1.4)

downloadablePlotly: Server-side logic for plotly with download data button in modebar

Description

Server-side logic for plotly with download data button in modebar

Usage

downloadablePlotly(
  input,
  output,
  session,
  plot,
  filename,
  content,
  title = "Download plot data"
)

Value

No return value, called to generate server logic.

Arguments

input, output, session

standard shiny boilerplate.

plot

Object of class 'plotly' or a function or reactive that generates one.

filename

A string of the filename, including extension, that the user's web browser should default to when downloading the file; or a function that returns such a string. (Reactive values and functions may be used from this function.)

content

A function that takes a single argument file that is a file path (string) of a nonexistent temp file, and writes the content to that file path. (Reactive values and functions may be used from this function.)

title

Text for plotly tooltip.

See Also

downloadablePlotlyUI