Skip to contents

The UI function of the shiny module that works with mod_download_figure_server() to automatically download figures from within a shiny application. The UI function provides a "Download" button that results in a pop-up where users can enter plot height and width and options to download a plot as PDF, PNG, or SVG. This work for both ggplot2 graphics and base R plots. Base R plots must be saved in an object with recordPlot.

Usage

mod_download_figure_ui(id, label = "Download Plot")

Arguments

id, input, output, session

Internal parameters for shiny.

label

Label for download button. Default is "Download Plot".

Value

UI elements for download button.