Learn R Programming

ShinyDash (version 0.0.1)

sendGraphData: Push data to a ShinyDash graph.

Description

Push data to a ShinyDash graph.

Usage

sendGraphData(outputId, expr, env = parent.frame(), quoted = FALSE, session = get("session", envir = env))

Arguments

outputId
The name of the output element to update.
expr
An expression that returns an R list with named elements corresponding to the series of data to be included in the graph. The default x variable will be the current time; this behavior can be overridden by providing a list element named x. Note that name is a reserved keyword which may not be used.
env
The environment in which to evaluate expr.
quoted
Is expr a quoted expression (with quote())? This is useful if you want to save an expression in a variable.
session
The current Shiny session into which we should send the messages to update the graph.

Examples

Run this code
## Not run: 
# sendGraphData("my_graph", {
#    list(
#      y0 = 15.3,
#      y1 = 13.2
#    )
# })
# ## End(Not run)

Run the code above in your browser using DataLab