tabPanelModule: download Plot as PDF or ggplot Object, modularized server

View source: R/tabPanelModule.R

tabPanelModuleR Documentation

download Plot as PDF or ggplot Object, modularized server

Description

Internal method that creates UI with buttons to download a plot as a PDF or ggplot object.

Usage

tabPanelModule(
  input,
  output,
  session,
  plotObject = NULL,
  plotName = NULL,
  plotObject2 = NULL,
  plotName2 = NULL,
  is.plotly = FALSE,
  is.grid = FALSE
)

Arguments

input

gets user input from UI

output

designates output for UI.

session

Shiny variable for server modules.

plotObject

Reactive plot object defined elsewhere in the server function.

plotName

Character string designating name of the plot for PDF output.

plotObject2

Reactive plot object for the (optional) second plot.

plotName2

Character string designating name of the (optional) second plot for the PDF output

is.plotly

Indicates if plots are plotly generated. Defaults to FALSE.

is.grid

Indicates if plot is generated using grid.arrange() to arrange ggplot objects. If TRUE, prints plot object implicitly rather than explicitly.

Author(s)

Julia Wrobel julia.wrobel@cuanschutz.edu


refunders/refund.shiny documentation built on Feb. 18, 2024, 8:43 a.m.