run_shiny: run a quick shiny app to explore changing a function's...

Description Usage Arguments Value Functions Examples

Description

run a quick shiny app to explore changing a function's parameters

Usage

1
2
3
run_shiny(call, slider_params, header = "", ...)

build_shiny(call, slider_params, header = "", ...)

Arguments

call

A character string, or a list of strings, each that evaluates to a call to a plotting function

slider_params

A list of vectors providing the ranges for each parameter to make a slider for

header

A character string for the app's title

Value

None.

List with elements ui and server, to be passed to shinyApp()

Functions

Examples

1
2
3
4
5
6
slider_params = list(A = c(1,0,2.5),B = c('a','b','c'))
call = function(A,B) {
  plot(NA,NA,xlim = c(-1,1),ylim = c(-1,1),main = B)
  symbol(0,0,circle = A,add=T,inches=F)
}
run_shiny(call,slider_params,header = 'test')

deruncie/QuickShiny documentation built on May 15, 2019, 5:05 a.m.