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

Description Usage Arguments Author(s)

View source: R/tabPanelModule.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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 jw3134@cumc.columbia.edu


refunders/refund.shiny documentation built on Aug. 20, 2020, 12:43 p.m.