shiny_plot: Shiny plot.

Description Usage Arguments Details Value Functions Author(s)

View source: R/shiny_util.R

Description

Convert a function that produces a plot into a Shiny app.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
shiny_plot(
  callback = NULL,
  width = 500,
  height = 500,
  dlname = "plot",
  prefix = "",
  ...
)

shiny_plot_ui(id, width = 500, height = 500, ...)

shiny_plot_server(input, output, session, callback, dlname = "plot")

Arguments

callback

Function to produce the plot. In shiny_plot, this takes one argument, "env" (see composable_shiny_app). In shiny_plot_server, it takes no arguements.

width

Default plot width.

height

Default plot height.

dlname

Filename (without extension) if plot is downloaded.

prefix

Prefix for variables in environment for composable shiny app.

...

Extra arguments to shiny_plot and shiny_plot_ui are passed on to plotOutput, for example brushing options.

id

Id for shiny module.

input

Supplied by shiny::callModule.

output

Supplied by shiny::callModule.

session

Supplied by shiny::callModule.

Details

shiny_plot is the varistran-style composable app object. shiny_plot_ui and shiny_plot_server are appropriate for the normal Shiny module system.

Value

shiny_plot() returns a composable shiny.appobj.

Functions

Author(s)

Paul Harrison


MonashBioinformaticsPlatform/varistran documentation built on March 21, 2020, 3:20 p.m.