beam_downloadButton: Download button for plot

Description Usage Arguments Details Value

View source: R/download_button.R

Description

Generates download button for a plot with dimensions of 300x400mm.

Usage

1
beam_downloadButton(id, plot_out, device)

Arguments

id

Unique id of download button.

plot_out

Plot to save.

device

Device to use. Can either be a device function (e.g. png()), or one of "eps", "ps", "tex" (pictex), "pdf", "jpeg", "tiff", "png", "bmp", "svg" or "wmf" (windows only).

Details

This function uses downloadHandler and ggsave.

Value

generate_downloadButton returns the output of downloadHandler for given plot and device.


BioGenies/shinydetails documentation built on March 1, 2021, 11:12 p.m.