View source: R/mod_download_plot.R
moduleDownloadPlotServer | R Documentation |
Saves Plots as SVG.
moduleDownloadPlotServer(
id,
session_parent,
plotOutputId,
plotting_function,
default_filename = "download"
)
id |
Module ID. Must be identical to moduleDownloadPlotUI |
session_parent |
Session object of the calling module (used to extract plot details) |
plotOutputId |
"ID of the rendered plot" |
plotting_function |
"function that when run with no arguments will create the plot. Can make by wrapping the plot call in its own function. e.g. for plot(mtcars) you could do: plotting_function <- reactive ( function() plot(mtcars) ) then pass 'plotting_function()'" |
default_filename |
default basename of downloaded file (string; non-reactive) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.