download_baseplot_server | R Documentation |
The server component of the Shiny module for creating a pretty download button for downloading a base plot as a png file.
download_baseplot_server(id, obj, fname = "download", dpi = 156, ...)
id |
String. The input slot that will be used to access the value. |
obj |
The ggplot2 object to be saved. |
fname |
String. Name of the file under which to save the object. |
dpi |
Number. The resolution of the saved png file. Default = 156. |
... |
Arguments that can be passed into 'grDevices::png()'. For example, 'units', 'width' and 'height'. |
A module server function that can be called in a reactive env.
download_ui
for the UI.
inst/examples/ex-download.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.