Use this function in the server part of your Shiny app.

renderVegawidget(expr, env = parent.frame(), quoted = FALSE)

Arguments

expr

expression that generates a vegawidget. This can be a vegawidget or a vegaspec.

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.