View source: R/downloadGGPlot.R
downloadGGPlotButtonUI | R Documentation |
Creates the user interface for a download button to download a ggplot
downloadGGPlotButtonUI(
id,
initialFileName = "",
placeholder = "Select filename...",
buttonLabel = "Download plot"
)
id |
A unique id name for this Shiny object. Should match up with 1
instance of |
initialFileName |
The default name that will be used for the filename of the downloaded file. |
placeholder |
Placeholder text for the filename input. This adds the placeholder attribute to the HTML input tag. |
buttonLabel |
Text to appear on the download link button. |
An inline form for downloading the ggplot, including filename, file format and the all-important download button.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.