ch_dygraph: Creates a collection of shiny objects to wrap the part of the...

Description Usage Arguments Details Value

View source: R/ch_dygraph.R

Description

The list will contain:

Usage

1

Arguments

id

character, tag to prepend to the input and output id's

Details

ui_controller

shiny::taglist of ui elements for the controller

ui_view

shing::taglist of ui elements for the view

server_model

function with reactive code

The list returned by this function has to be available to both the ui and the server. If not using the shinyApp formulation, perhaps global.R could be useful.

The list ui_controller will have members:

time

shiny::selectInput used to choose the variable for the x axis

y1

shiny::selectInput used to choose the variable for the y1 axis

y2

shiny::selectInput used to choose the variable for the y2 axis

The list ui_view will have members:

dygraph

dygraphs::dygraphOutput showing a preview of the first few lines of the text file

The function server_model() will be called from your server function. Its arguments are:

input, output, session

input, output, session values passed from your server function

rctval_data, item_data

shiny::reactiveValues object, character string. rctval_data[[item_data]] is expected to be a dataframe, input for dygraph.

rctval_dyopt, item_dyopt

shiny::reactiveValues object, character string. The default value for rctval_dyopt is rctval_dyopt. rctval_dyopt[[rctval_dyopt]] is expected to be a list of dygraph options, see documentation for dygraphs::dyOptions

Value

list containing ui_controller, ui_view, and server_model


ijlyttle/shinychord documentation built on May 18, 2019, 3:41 a.m.