Description Usage Arguments Details Value
View source: R/download_button.R
Generates download button for a plot with dimensions of 300x400mm.
1 | beam_downloadButton(id, plot_out, device)
|
id |
Unique id of download button. |
plot_out |
Plot to save. |
device |
Device to use. Can either be a device function
(e.g. |
This function uses downloadHandler
and ggsave
.
generate_downloadButton
returns the output of downloadHandler
for given plot and device.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.