moduleDownloadPlotServer: Saves Plots as SVG.

View source: R/mod_download_plot.R

moduleDownloadPlotServerR Documentation

Saves Plots as SVG.

Description

Saves Plots as SVG.

Usage

moduleDownloadPlotServer(
  id,
  session_parent,
  plotOutputId,
  plotting_function,
  default_filename = "download"
)

Arguments

id

Module ID. Must be identical to moduleDownloadPlotUI

session_parent

Session object of the calling module (used to extract plot details)

plotOutputId

"ID of the rendered plot"

plotting_function

"function that when run with no arguments will create the plot. Can make by wrapping the plot call in its own function. e.g. for plot(mtcars) you could do: plotting_function <- reactive ( function() plot(mtcars) ) then pass 'plotting_function()'"

default_filename

default basename of downloaded file (string; non-reactive)


CCICB/CRUX documentation built on Jan. 28, 2024, 10:12 p.m.