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

View source: R/downloadablePlotly.R

downloadablePlotlyR Documentation

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"
)

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.

Value

No return value, called to generate server logic.

See Also

downloadablePlotlyUI


shinydlplot documentation built on Nov. 19, 2022, 1:06 a.m.