Description Usage Arguments Examples
Vega-Lite is - at the core - a JSON "Grammar of Graphics" specification for how to build a data- & stats-based visualization. While Vega & D3 are the main targets, the use of Vega-Lite does not have to be restricted to just D3. For now, this function takes in a JSON spec (full text or URL) and renders it as an htmlwidget. Data should either be embedded or use a an absolute URL reference.
1 2  | 
spec | 
 URL to a Vega-Lite JSON file, the JSON text of a spec, or the file path for a json spec  | 
width, height | 
 widget width/height  | 
renderer | 
 the renderer to use for the view. One of   | 
export | 
 if   | 
source | 
 if   | 
editor | 
 if   | 
1  | from_spec("http://rud.is/dl/embedded.json")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.