sendGraphData: Push data to a ShinyDash graph.

Description Usage Arguments Author(s) Examples

Description

Push data to a ShinyDash graph.

Usage

1
2
  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.

Author(s)

Jeff Allen <jeff.allen@trestletechnology.net>

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
sendGraphData("my_graph", {
   list(
     y0 = 15.3,
     y1 = 13.2
   )
})

## End(Not run)

trestletech/ShinyDash documentation built on May 31, 2019, 7:47 p.m.